interface ControllerResolverInterface implements ControllerResolverInterface (View source)

Extends the ControllerResolverInterface from symfony.

Methods

mixed|bool
getControllerFromDefinition(mixed $controller)

Returns the Controller instance with a given controller route definition.

Details

mixed|bool getControllerFromDefinition(mixed $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.

Parameters

mixed $controller

The controller attribute like in $request->attributes->get('_controller')

Return Value

mixed|bool

A PHP callable representing the Controller, or false if this resolver is not able to determine the controller

Exceptions

LogicException

See also

\Symfony\Component\HttpKernel\Controller\ControllerResolverInterface::getController()