Commit d18adaff authored by Fabien Potencier's avatar Fabien Potencier

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

This PR was merged into the master branch.

Discussion
----------

Remove usage of deprecated function getPattern()

Found another one.
Did also some search now and there is no set/get-Pattern anymore.

Commits
-------

36be14f9 Remove usage of deprecated function getPattern()
parents 9b9bc73e 36be14f9
......@@ -109,7 +109,7 @@ class Controller
$requirements = $this->route->getRequirements();
$method = isset($requirements['_method']) ? $requirements['_method'] : '';
$routeName = $prefix.$method.$this->route->getPattern();
$routeName = $prefix.$method.$this->route->getPath();
$routeName = str_replace(array('/', ':', '|', '-'), '_', $routeName);
$routeName = preg_replace('/[^a-z0-9A-Z_.]+/', '', $routeName);
......
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