[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Controller/ -> ControllerResolverInterface.php (summary)

(no description)

File Size: 57 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ControllerResolverInterface:: (2 methods):
  getController()
  getArguments()


Interface: ControllerResolverInterface  - X-Ref

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.

getController(Request $request)   X-Ref
Returns the Controller instance associated with a Request.

As several resolvers can exist for a single application, a resolver must
return false when it is not able to determine the controller.

The resolver must only throw an exception when it should be able to load
controller but cannot because of some errors made by the developer.

param: Request $request A Request instance
return: mixed|bool A PHP callable representing the Controller,

getArguments(Request $request, $controller)   X-Ref
Returns the arguments to pass to the controller.

param: Request $request    A Request instance
param: mixed   $controller A PHP callable
return: array An array of arguments to pass to the controller



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1