From c9ff42955b7fac9358ba017760586d1cc3d1c75a Mon Sep 17 00:00:00 2001 From: ornicar Date: Sat, 14 Aug 2010 22:00:32 +0200 Subject: [PATCH] fixed usage of getRequest() in ControllerResolver --- .../Bundle/FrameworkBundle/Controller/ControllerResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php b/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php index 8ef02ffe77..30dcb62736 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php @@ -81,7 +81,7 @@ class ControllerResolver extends BaseControllerResolver public function forward($controller, array $path = array(), array $query = array()) { $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); }