fixed usage of getRequest() in ControllerResolver
This commit is contained in:
parent
e510778e18
commit
c9ff42955b
@ -81,7 +81,7 @@ class ControllerResolver extends BaseControllerResolver
|
|||||||
public function forward($controller, array $path = array(), array $query = array())
|
public function forward($controller, array $path = array(), array $query = array())
|
||||||
{
|
{
|
||||||
$path['_controller'] = $controller;
|
$path['_controller'] = $controller;
|
||||||
$subRequest = $this->getRequest()->duplicate($query, null, $path);
|
$subRequest = $this->container->getRequestService()->duplicate($query, null, $path);
|
||||||
|
|
||||||
return $this->container->get('kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
|
return $this->container->get('kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user