Permalink
Browse files

[HttpKernel] added a way to get the original values returned by the r…

…outer
  • Loading branch information...
fabpot committed Oct 29, 2011
1 parent 8c0517f commit f8065d180574703dee6a7b114dbf7524ecc7408e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Symfony/Component/HttpKernel/EventListener/RouterListener.php
@@ -67,6 +67,7 @@ public function onKernelRequest(GetResponseEvent $event)
}
$request->attributes->add($parameters);
+ $request->attributes->set('_route_params', $parameters);
@schmittjoh

schmittjoh Oct 29, 2011

Contributor

What about unsetting the _route key before?

It doesn't belong to the route params and it is already accessible directly.

} catch (ResourceNotFoundException $e) {
$message = sprintf('No route found for "%s %s"', $request->getMethod(), $request->getPathInfo());

0 comments on commit f8065d1

Please sign in to comment.