[HttpKernel] Remove the _controller since it is not a route parameter part of the url
This commit is contained in:
parent
88b40e92d8
commit
09b1bd53b0
@ -61,6 +61,7 @@ class RouterListener implements EventSubscriberInterface
|
|||||||
|
|
||||||
$request->attributes->add($parameters);
|
$request->attributes->add($parameters);
|
||||||
unset($parameters['_route']);
|
unset($parameters['_route']);
|
||||||
|
unset($parameters['_controller']);
|
||||||
$request->attributes->set('_route_params', $parameters);
|
$request->attributes->set('_route_params', $parameters);
|
||||||
} catch (ResourceNotFoundException $e) {
|
} catch (ResourceNotFoundException $e) {
|
||||||
$message = sprintf('No route found for "%s %s"', $request->getMethod(), $request->getPathInfo());
|
$message = sprintf('No route found for "%s %s"', $request->getMethod(), $request->getPathInfo());
|
||||||
|
Reference in New Issue
Block a user