[HttpKernel] Added use of provided by #12022 method to instantiate controller class in bundle's controller resolver
This commit is contained in:
parent
eadc8c7de5
commit
aa6538a8a9
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user