Property | Type | Description | |
---|---|---|---|
$namedRoutes | array | All of the named routes and URI pairs. |
Property | Type | Description | |
---|---|---|---|
$currentRoute | array | The current route being dispatched. | |
$dispatcher | FastRoute\Dispatcher | The FastRoute dispatcher. | |
$groupAttributes | array | null | The shared attributes for the current route group. | |
$middleware | array | All of the global middleware for the application. | |
$routeMiddleware | array | All of the route specific middleware short-hands. | |
$routes | array | All of the routes waiting to be registered. |
Method | Description | |
---|---|---|
addRoute ( array | string $method, string $uri, mixed $action ) : void | Add a route to the collection. | |
delete ( string $uri, mixed $action ) | Register a route with the application. | |
dispatch ( |
Dispatch the incoming request. | |
get ( string $uri, mixed $action ) | Register a route with the application. | |
getRoutes ( ) : array | Get the raw routes for the application. | |
group ( array $attributes, Closure $callback ) : void | Register a set of routes with a set of shared attributes. | |
handle ( |
||
middleware ( Closur\Closure | array $middleware ) | Add new middleware to the application. | |
options ( string $uri, mixed $action ) | Register a route with the application. | |
patch ( string $uri, mixed $action ) | Register a route with the application. | |
post ( string $uri, mixed $action ) | Register a route with the application. | |
prepareResponse ( mixed $response ) : Illuminate\Http\Response | Prepare the response for sending. | |
put ( string $uri, mixed $action ) | Register a route with the application. | |
routeMiddleware ( array $middleware ) | Define the route middleware for the application. | |
run ( |
Run the application and send the response. | |
setDispatcher ( FastRoute\Dispatcher $dispatcher ) : void | Set the FastRoute dispatcher instance. |
Method | Description | |
---|---|---|
callActionOnArrayBasedRoute ( array $routeInfo ) : mixed | Call the Closure on the array based route. | |
callControllerAction ( array $routeInfo ) : mixed | Call a controller based route. | |
callControllerCallable ( callable $callable, array $parameters = [] ) : Illuminate\Http\Response | Call a controller callable and return the response. | |
callLumenController ( mixed $instance, string $method, array $routeInfo ) : mixed | Send the request through a Lumen controller. | |
callLumenControllerWithMiddleware ( mixed $instance, string $method, array $routeInfo, array $middleware ) : mixed | Send the request through a set of controller middleware. | |
callTerminableMiddleware ( mixed $response ) : void | Call the terminable middleware. | |
createDispatcher ( ) : FastRoute\Dispatcher | Create a FastRoute dispatcher instance for the application. | |
gatherMiddlewareClassNames ( string $middleware ) : array | Gather the full class names for the middleware short-cut string. | |
getMethod ( ) : string | Get the current HTTP request method. | |
getPathInfo ( ) : string | Get the current HTTP path info. | |
handleDispatcherResponse ( array $routeInfo ) : mixed | Handle the response from the FastRoute dispatcher. | |
handleFoundRoute ( array $routeInfo ) : mixed | Handle a route found by the dispatcher. | |
mergeGroupAttributes ( array $action ) : array | Merge the group attributes into the action. | |
mergeMiddlewareGroup ( array $action ) : array | Merge the middleware group into the action. | |
mergeNamespaceGroup ( array $action ) : array | Merge the namespace group into the action. | |
parseAction ( mixed $action ) : array | Parse the action into an array format. | |
parseIncomingRequest ( Illuminate\Http\Request | null $request ) : array | Parse the incoming request and return the method and path info. | |
sendThroughPipeline ( array $middleware, Closure $then ) : mixed | Send the request through the pipeline with the given callback. | |
shouldSkipMiddleware ( ) : boolean | Determines whether middleware should be skipped during request. |
protected callActionOnArrayBasedRoute ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
return | mixed |
protected callControllerAction ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
return | mixed |
protected callControllerCallable ( callable $callable, array $parameters = [] ) : Illuminate\Http\Response | ||
$callable | callable | |
$parameters | array | |
return | Illuminate\Http\Response |
protected callTerminableMiddleware ( mixed $response ) : void | ||
$response | mixed | |
return | void |
protected createDispatcher ( ) : FastRoute\Dispatcher | ||
return | FastRoute\Dispatcher |
protected gatherMiddlewareClassNames ( string $middleware ) : array | ||
$middleware | string | |
return | array |
protected getPathInfo ( ) : string | ||
return | string |
public handle ( |
||
$request |
protected handleDispatcherResponse ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
return | mixed |
protected handleFoundRoute ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
return | mixed |
protected mergeGroupAttributes ( array $action ) : array | ||
$action | array | |
return | array |
protected mergeMiddlewareGroup ( array $action ) : array | ||
$action | array | |
return | array |
protected mergeNamespaceGroup ( array $action ) : array | ||
$action | array | |
return | array |
public middleware ( Closur\Closure | array $middleware ) | ||
$middleware | Closur\Closure | array |
protected parseAction ( mixed $action ) : array | ||
$action | mixed | |
return | array |
protected parseIncomingRequest ( Illuminate\Http\Request | null $request ) : array | ||
$request | Illuminate\Http\Request | null | |
return | array |
public prepareResponse ( mixed $response ) : Illuminate\Http\Response | ||
$response | mixed | |
return | Illuminate\Http\Response |
public routeMiddleware ( array $middleware ) | ||
$middleware | array |
public setDispatcher ( FastRoute\Dispatcher $dispatcher ) : void | ||
$dispatcher | FastRoute\Dispatcher | |
return | void |
protected shouldSkipMiddleware ( ) : boolean | ||
return | boolean |
protected array $currentRoute | ||
return | array |
protected Dispatcher,FastRoute $dispatcher | ||
return | FastRoute\Dispatcher |
protected array $middleware | ||
return | array |
public array $namedRoutes | ||
return | array |
protected array $routeMiddleware | ||
return | array |
protected array $routes | ||
return | array |