Skip to content

Commit

Permalink
[HttpKernel] added a way to get the original values returned by the r…
Browse files Browse the repository at this point in the history
…outer
  • Loading branch information
fabpot committed Oct 29, 2011
1 parent 8c0517f commit f8065d1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -67,6 +67,7 @@ public function onKernelRequest(GetResponseEvent $event)
}

$request->attributes->add($parameters);
$request->attributes->set('_route_params', $parameters);

This comment has been minimized.

Copy link
@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());

Expand Down

0 comments on commit f8065d1

Please sign in to comment.