Kernel
Implements
Properties
$bootstrappers string[]
The bootstrap classes for the application.
$middleware array
The application's middleware stack.
$middlewareGroups array
The application's route middleware groups.
$routeMiddleware array
The application's route middleware.
$middlewarePriority string[]
The priority-sorted list of middleware.
Forces non-global middleware to always be in the given order.
Methods
__construct ( Application $app , Router $router ) : void
Create a new HTTP kernel instance.
Parameters
- $app Application
- $router Router
sendRequestThroughRouter ( $request ) : Response
Send the given request through the middleware / router.
Parameters
- $request Request
bootstrap ( ) : void
Bootstrap the application for HTTP requests.
terminate ( $request , $response ) : void
Call the terminate method on any terminable middleware.
Parameters
terminateMiddleware ( $request , $response ) : void
Call the terminate method on any terminable middleware.
Parameters
gatherRouteMiddleware ( $request ) : array
Gather the route middleware for the given request.
Parameters
- $request Request
parseMiddleware ( $middleware ) : array
Parse a middleware string to get the name and parameters.
Parameters
- $middleware string
hasMiddleware ( $middleware ) : bool
Determine if the kernel has a given middleware.
Parameters
- $middleware string
prependMiddleware ( $middleware ) : $this
Add a new middleware to the beginning of the stack if it does not already exist.
Parameters
- $middleware string
pushMiddleware ( $middleware ) : $this
Add a new middleware to end of the stack if it does not already exist.
Parameters
- $middleware string
prependMiddlewareToGroup ( $group , $middleware ) : $this
Prepend the given middleware to the given middleware group.
Parameters
- $group string
- $middleware string
appendMiddlewareToGroup ( $group , $middleware ) : $this
Append the given middleware to the given middleware group.
Parameters
- $group string
- $middleware string
prependToMiddlewarePriority ( $middleware ) : $this
Prepend the given middleware to the middleware priority list.
Parameters
- $middleware string
appendToMiddlewarePriority ( $middleware ) : $this
Append the given middleware to the middleware priority list.
Parameters
- $middleware string
syncMiddlewareToRouter ( ) : void
Sync the current state of the middleware to the router.
getMiddlewarePriority ( ) : array
Get the priority-sorted list of middleware.
bootstrappers ( ) : array
Get the bootstrap classes for the application.
reportException ( Throwable $e ) : void
Report the exception to the exception handler.
Parameters
- $e Throwable
renderException ( $request , Throwable $e ) : Symfony\...\Response
Render the exception to a response.
Parameters
getMiddlewareGroups ( ) : array
Get the application's route middleware groups.
getRouteMiddleware ( ) : array
Get the application's route middleware.
setApplication ( Application $app ) : $this
Set the Laravel application instance.
Parameters
- $app Application