Kernel
class Kernel implements Kernel
Properties
protected Application | $app | The application implementation. |
|
protected Router | $router | The router instance. |
|
protected array | $bootstrappers | The bootstrap classes for the application. |
|
protected array | $middleware | The application's middleware stack. |
|
protected array | $middlewareGroups | The application's route middleware groups. |
|
protected array | $routeMiddleware | The application's route middleware. |
|
protected array | $middlewarePriority | The priority-sorted list of middleware. |
Methods
Handle an incoming HTTP request.
Bootstrap the application for HTTP requests.
Get the route dispatcher callback.
Call the terminate method on any terminable middleware.
Call the terminate method on any terminable middleware.
Parse a middleware string to get the name and parameters.
Determine if the kernel has a given middleware.
Add a new middleware to beginning of the stack if it does not already exist.
Add a new middleware to end of the stack if it does not already exist.
Get the bootstrap classes for the application.
Get the Laravel application instance.
Details
at line 89
void
__construct(Application $app, Router $router)
Create a new HTTP kernel instance.
at line 111
Response
handle(Request $request)
Handle an incoming HTTP request.
at line 140
protected Response
sendRequestThroughRouter(Request $request)
Send the given request through the middleware / router.
at line 159
void
bootstrap()
Bootstrap the application for HTTP requests.
at line 171
protected Closure
dispatchToRouter()
Get the route dispatcher callback.
at line 187
void
terminate(Request $request, Response $response)
Call the terminate method on any terminable middleware.
at line 201
protected void
terminateMiddleware(Request $request, Response $response)
Call the terminate method on any terminable middleware.
at line 229
protected array
gatherRouteMiddleware(Request $request)
Gather the route middleware for the given request.
at line 244
protected array
parseMiddleware(string $middleware)
Parse a middleware string to get the name and parameters.
at line 261
bool
hasMiddleware(string $middleware)
Determine if the kernel has a given middleware.
at line 272
$this
prependMiddleware(string $middleware)
Add a new middleware to beginning of the stack if it does not already exist.
at line 287
$this
pushMiddleware(string $middleware)
Add a new middleware to end of the stack if it does not already exist.
at line 301
protected array
bootstrappers()
Get the bootstrap classes for the application.
at line 312
protected void
reportException(Exception $e)
Report the exception to the exception handler.
at line 324
protected Response
renderException(Request $request, Exception $e)
Render the exception to a response.
at line 334
Application
getApplication()
Get the Laravel application instance.