Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver::createController
Returns a callable for the given controller.
Signature
protected function createController(string
$controller )
Parameters
$controller
— string- A Controller string
Returns
- mixed
- A PHP callable
Errors/Exceptions
-
LogicException
- When the name could not be parsed
-
InvalidArgumentException
- When the controller class does not exist