Skip to content

Commit

Permalink
[HttpKernel] Remove the _controller since it is not a route parameter…
Browse files Browse the repository at this point in the history
… part of the url
  • Loading branch information
Seldaek committed Feb 23, 2012
1 parent 88b40e9 commit 09b1bd5
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -61,6 +61,7 @@ public function onKernelRequest(GetResponseEvent $event)

$request->attributes->add($parameters);
unset($parameters['_route']);
unset($parameters['_controller']);
$request->attributes->set('_route_params', $parameters);
} catch (ResourceNotFoundException $e) {
$message = sprintf('No route found for "%s %s"', $request->getMethod(), $request->getPathInfo());
Expand Down

0 comments on commit 09b1bd5

Please sign in to comment.