From aa6538a8a98c0fb0ccafd5cd41cae4f03c68d1fa Mon Sep 17 00:00:00 2001 From: sergey Date: Mon, 2 Feb 2015 15:24:27 +0200 Subject: [PATCH] [HttpKernel] Added use of provided by #12022 method to instantiate controller class in bundle's controller resolver --- .../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 33dde753a0..c6ef277be3 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php @@ -76,7 +76,7 @@ class ControllerResolver extends BaseControllerResolver throw new \InvalidArgumentException(sprintf('Class "%s" does not exist.', $class)); } - $controller = new $class(); + $controller = $this->instantiateController($class); if ($controller instanceof ContainerAwareInterface) { $controller->setContainer($this->container); }