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); }