W3cubDocs

/Laravel 5.1

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( 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.

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

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

Create a new controller dispatcher instance.

Parameters

Router $router
Container $container

Return Value

void

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

bool methodExcludedByOptions( string $method, array $options)

Determine if the given options exclude a particular method.

Parameters

string $method
array $options

Return Value

bool

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