ControllerResolverInterface

ControllerResolverInterface

interface ControllerResolverInterface

A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object.

It can also determine the arguments to pass to the Controller.

A Controller can be any valid PHP callable.

Methods

callable|false getController(Request $request)

Returns the Controller instance associated with a Request.

array getArguments(Request $request, callable $controller) 登录查看完整内容