Documentation

ControllerDispatcher

Table of Contents

dispatch()  : mixed
Dispatch a request to a given controller and method.
getMiddleware()  : array<string|int, mixed>
Get the middleware for the controller instance.

Methods

dispatch()

Dispatch a request to a given controller and method.

public dispatch(Route $route, mixed $controller, string $method) : mixed
Parameters
$route : Route
$controller : mixed
$method : string
Return values
mixed

getMiddleware()

Get the middleware for the controller instance.

public getMiddleware(Controller $controller, string $method) : array<string|int, mixed>
Parameters
$controller : Controller
$method : string
Return values
array<string|int, mixed>

Search results