Commit 36be14f9 authored by Daniel Tschinder's avatar Daniel Tschinder

Remove usage of deprecated function getPattern()

parent 9b9bc73e
......@@ -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