[WebBundle] fixed controller loader run() method
This commit is contained in:
parent
1c0a18d1b4
commit
257c06f551
@ -46,9 +46,13 @@ class ControllerLoader
|
|||||||
list($parameters['_bundle'], $parameters['_controller'], $parameters['_action']) = explode(':', $controller);
|
list($parameters['_bundle'], $parameters['_controller'], $parameters['_action']) = explode(':', $controller);
|
||||||
$parameters['_format'] = $request->getRequestFormat();
|
$parameters['_format'] = $request->getRequestFormat();
|
||||||
|
|
||||||
$request = $request->duplicate(null, null, $parameters);
|
$subRequest = $request->duplicate(null, null, $parameters);
|
||||||
|
|
||||||
return $this->container->getRequestHandlerService()->handleRaw($request, false);
|
$response = $this->container->getRequestHandlerService()->handleRaw($subRequest, false);
|
||||||
|
|
||||||
|
$this->container->setService('request', $request);
|
||||||
|
|
||||||
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function resolve(Event $event)
|
public function resolve(Event $event)
|
||||||
|
Reference in New Issue
Block a user