Commit 9b9bc73e authored by Fabien Potencier's avatar Fabien Potencier

merged branch Danez/patch-1 (PR #760)

This PR was merged into the master branch.

Discussion
----------

Remove usage of deprecated function

Remove usage of deprecated function setPattern() and replace with replacement function setPath().

I was not sure if we also want to rename the variables/arguments $pattern to $path inside silex. For now i haven't touched them.

Commits
-------

3b4895de Remove usage of deprecated function setPattern()
parents e9bedd65 3b4895de
......@@ -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