class ApplicationAwareControllerResolver extends ControllerResolver implements ApplicationAwareInterface (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from ApplicationAwareTrait
protected LoggerInterface $logger

Methods

setApplication(Application $app)

Setter method for the application

__construct(Application $app, LoggerInterface $logger = null)

No description

getController(Request $request)

{@inheritdoc}

mixed
createController(string $controller)

Returns a callable for the given controller.

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(Application $app, LoggerInterface $logger = null)

Parameters

Application $app
LoggerInterface $logger

getController(Request $request)

{@inheritdoc}

This method looks for a '_controller' request attribute that represents the controller name (a string like ClassName::MethodName).

Parameters

Request $request

protected mixed createController(string $controller)

Returns a callable for the given controller.

Parameters

string $controller A Controller string

Return Value

mixed A PHP callable

Exceptions

InvalidArgumentException