Allow setParameters() in Cms Router

This commit is contained in:
Sam Georges 2014-08-28 08:19:08 +10:00
parent c1bb7cec32
commit eb6a912f28

View File

@ -83,7 +83,6 @@ class Router
/*
* Find the page by URL and cache the route
*/
if (!$fileName) {
$router = $this->getRouterObject();
@ -107,7 +106,6 @@ class Router
/*
* 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