[HttpKernel] Added use of provided by #12022 method to instantiate controller class in bundle's controller resolver

This commit is contained in:
sergey 2015-02-02 15:24:27 +02:00
parent eadc8c7de5
commit aa6538a8a9

View File

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