Commit 3b4895de authored by Daniel Tschinder's avatar Daniel Tschinder

Remove usage of deprecated function setPattern()

and replace with replacement function setPath()
parent e9bedd65
......@@ -50,7 +50,7 @@ class ControllerCollection
public function match($pattern, $to)
{
$route = clone $this->defaultRoute;
$route->setPattern($pattern);
$route->setPath($pattern);
$route->setDefault('_controller', $to);
$this->controllers[] = $controller = new Controller($route);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment