class ControllerDispatcher (View source)

Traits

Methods

array
resolveMethodDependencies( array $parameters, ReflectionFunctionAbstract $reflector)

Resolve the given method's type-hinted dependencies.

void
__construct( Router $router, Container $container = null)

Create a new controller dispatcher instance.

mixed
dispatch( Route $route, Request $request, string $controller, string $method)

Dispatch a request to a given controller and method.

array
getMiddleware( Controller $instance, string $method)

Get the middleware for the controller instance.

bool
methodExcludedByOptions( string $method, array $options)

Determine if the given options exclude a particular method.

Details

array resolveMethodDependencies( array $parameters, ReflectionFunctionAbstract $reflector)

Resolve the given method's type-hinted dependencies.

Parameters

array $parameters
ReflectionFunctionAbstract $reflector

Return Value

array

at line line 34
void __construct( Router $router, Container $container = null)

Create a new controller dispatcher instance.

Parameters

Router $router
Container $container

Return Value

void

at line line 50
mixed dispatch( Route $route, Request $request, string $controller, string $method)

Dispatch a request to a given controller and method.

Parameters

Route $route
Request $request
string $controller
string $method

Return Value

mixed

at line line 106
array getMiddleware( Controller $instance, string $method)

Get the middleware for the controller instance.

Parameters

Controller $instance
string $method

Return Value

array

at line line 126
bool methodExcludedByOptions( string $method, array $options)

Determine if the given options exclude a particular method.

Parameters

string $method
array $options

Return Value

bool