W3cubDocs

/Laravel 5.4

ControllerDispatcher

class ControllerDispatcher (View source)

Traits

RouteDependencyResolverTrait

Methods

array resolveMethodDependencies(array $parameters, ReflectionFunctionAbstract $reflector)

Resolve the given method's type-hinted dependencies.

from RouteDependencyResolverTrait
void __construct(Container $container)

Create a new controller dispatcher instance.

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

Dispatch a request to a given controller and method.

static array getMiddleware(Controller $controller, string $method)

Get the middleware for the controller instance.

Details

array resolveMethodDependencies(array $parameters, ReflectionFunctionAbstract $reflector)

Resolve the given method's type-hinted dependencies.

Parameters

array $parameters
ReflectionFunctionAbstract $reflector

Return Value

array

void __construct(Container $container)

Create a new controller dispatcher instance.

Parameters

Container $container

Return Value

void

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

Dispatch a request to a given controller and method.

Parameters

Route $route
mixed $controller
string $method

Return Value

mixed

static array getMiddleware(Controller $controller, string $method)

Get the middleware for the controller instance.

Parameters

Controller $controller
string $method

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Routing/ControllerDispatcher.html