Commit 3d1a868c authored by luisgonzalez's avatar luisgonzalez Committed by Luis

add '_route' key to RedirectableUrlMatcher::redirect

When there is a logger, the Symfony\Compoment\HttpKernel\EventListener\RouterListener class expects the '_route' key to exist in order to log the matched route and issues a PHP Notice
parent 7ae0fd8b
...@@ -54,6 +54,7 @@ class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher ...@@ -54,6 +54,7 @@ class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher
return array( return array(
'_controller' => function ($url) { return new RedirectResponse($url, 301); }, '_controller' => function ($url) { return new RedirectResponse($url, 301); },
'_route' => null,
'url' => $url, 'url' => $url,
); );
} }
......
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