public ControllerResolverInterface::getControllerFromDefinition($controller)
Returns the Controller instance with a given controller route definition.
As several resolvers can exist for a single application, a resolver must return false when it is not able to determine the controller.
mixed $controller: The controller attribute like in $request->attributes->get('_controller')
mixed|bool A PHP callable representing the Controller, or false if this resolver is not able to determine the controller
\InvalidArgumentException|\LogicException Thrown if the controller can't be found.
\Symfony\Component\HttpKernel\Controller\ControllerResolverInterface::getController()
public function getControllerFromDefinition($controller);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Controller!ControllerResolverInterface.php/function/ControllerResolverInterface::getControllerFromDefinition/8.1.x