mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Allow setParameters() in Cms Router
This commit is contained in:
parent
c1bb7cec32
commit
eb6a912f28
@ -83,7 +83,6 @@ class Router
|
||||
/*
|
||||
* Find the page by URL and cache the route
|
||||
*/
|
||||
|
||||
if (!$fileName) {
|
||||
$router = $this->getRouterObject();
|
||||
|
||||
@ -105,9 +104,8 @@ class Router
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the page
|
||||
* Return the page
|
||||
*/
|
||||
|
||||
if ($fileName) {
|
||||
if (($page = Page::loadCached($this->theme, $fileName)) === null) {
|
||||
/*
|
||||
@ -232,6 +230,16 @@ class Router
|
||||
Cache::forget($this->getCacheKey('cms-url-list'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the current routing parameters.
|
||||
* @param array $parameters
|
||||
* @return array
|
||||
*/
|
||||
public function setParameters(array $parameters)
|
||||
{
|
||||
$this->parameters = $parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current routing parameters.
|
||||
* @return array
|
||||
|
Loading…
x
Reference in New Issue
Block a user