class Illuminate / Routing / ControllerDispatcher
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ControllerDispatcher

Implements

Uses

Properties

protected

$container Container

The container instance.

Default: null

Methods

public

__construct ( Container $container ) : void

Create a new controller dispatcher instance.

Parameters

public

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

Dispatch a request to a given controller and method.

Parameters

  • $route Route
  • $controller mixed
  • $method string
public

getMiddleware ( $controller , $method ) : array

Get the middleware for the controller instance.

Parameters

protected static

methodExcludedByOptions ( $method , array $options ) : bool

Determine if the given options exclude a particular method.

Parameters

  • $method string
  • $options array