Symfony\Component\HttpKernel\Controller\ControllerResolver::getController
Returns the Controller instance associated with a Request.
This method looks for a '_controller' request attribute that represents the controller name (a string like ClassName::MethodName).
Signature
public function getController(Request
$request )
Parameters
$request
— Symfony\Component\HttpFoundation\Request- A Request instance
Returns
- mixed|Boolean
- A PHP callable representing the Controller,
or false if this resolver is not able to determine the controller
Errors/Exceptions
-
LogicException
- If the controller can't be found