Kernel
interface Kernel
Methods
Bootstrap the application for HTTP requests.
Determine if the kernel has a given middleware.
Add a new middleware to the beginning of the stack if it does not already exist.
Add a new middleware to the end of the stack if it does not already exist.
Prepend the given middleware to the given middleware group.
Append the given middleware to the given middleware group.
Prepend the given middleware to the middleware priority list.
Append the given middleware to the middleware priority list.
Add the given middleware to the middleware priority list before other middleware.
Add the given middleware to the middleware priority list after other middleware.
Get the priority-sorted list of middleware.
Get the application's global middleware.
Set the application's global middleware.
Get the application's route middleware groups.
Set the application's middleware groups.
Get the application's route middleware aliases.
Set the application's route middleware aliases.
Set the application's middleware priority.
Get the application instance.
Details
at line 16
void
bootstrap()
Bootstrap the application for HTTP requests.
at line 21
Response
handle(Request $request)
Handle an incoming HTTP request.
at line 26
void
terminate(Request $request, Response $response)
Perform any final actions for the request lifecycle.
at line 31
bool
hasMiddleware(string $middleware)
Determine if the kernel has a given middleware.
at line 41
Kernel
prependMiddleware(string $middleware)
Add a new middleware to the beginning of the stack if it does not already exist.
Boot-only. Middleware persists in the kernel's global stack for the worker lifetime and runs on every subsequent request across all coroutines.
at line 51
Kernel
pushMiddleware(string $middleware)
Add a new middleware to the end of the stack if it does not already exist.
Boot-only. Middleware persists in the kernel's global stack for the worker lifetime and runs on every subsequent request across all coroutines.
at line 61
Kernel
prependMiddlewareToGroup(string $group, string $middleware)
Prepend the given middleware to the given middleware group.
Boot-only. The middleware group persists in the kernel for the worker lifetime and runs on every subsequent request matching the group.
at line 71
Kernel
appendMiddlewareToGroup(string $group, string $middleware)
Append the given middleware to the given middleware group.
Boot-only. The middleware group persists in the kernel for the worker lifetime and runs on every subsequent request matching the group.
at line 81
Kernel
prependToMiddlewarePriority(string $middleware)
Prepend the given middleware to the middleware priority list.
Boot-only. The middleware priority list persists in the kernel for the worker lifetime and affects middleware ordering for every subsequent request.
at line 91
Kernel
appendToMiddlewarePriority(string $middleware)
Append the given middleware to the middleware priority list.
Boot-only. The middleware priority list persists in the kernel for the worker lifetime and affects middleware ordering for every subsequent request.
at line 102
Kernel
addToMiddlewarePriorityBefore(string|array $before, string $middleware)
Add the given middleware to the middleware priority list before other middleware.
Boot-only. The middleware priority list persists in the kernel for the worker lifetime and affects middleware ordering for every subsequent request.
at line 113
Kernel
addToMiddlewarePriorityAfter(string|array $after, string $middleware)
Add the given middleware to the middleware priority list after other middleware.
Boot-only. The middleware priority list persists in the kernel for the worker lifetime and affects middleware ordering for every subsequent request.
at line 120
array
getMiddlewarePriority()
Get the priority-sorted list of middleware.
at line 127
array
getGlobalMiddleware()
Get the application's global middleware.
at line 138
Kernel
setGlobalMiddleware(array $middleware)
Set the application's global middleware.
Boot-only. Middleware persists in the kernel's global stack for the worker lifetime and runs on every subsequent request across all coroutines.
at line 145
array
getMiddlewareGroups()
Get the application's route middleware groups.
at line 156
Kernel
setMiddlewareGroups(array $groups)
Set the application's middleware groups.
Boot-only. Middleware groups persist in the kernel for the worker lifetime and affect every subsequent request matching those groups.
at line 163
array
getMiddlewareAliases()
Get the application's route middleware aliases.
at line 174
Kernel
setMiddlewareAliases(array $aliases)
Set the application's route middleware aliases.
Boot-only. Middleware aliases persist in the kernel for the worker lifetime and affect every subsequent request that uses them.
at line 185
Kernel
setMiddlewarePriority(array $priority)
Set the application's middleware priority.
Boot-only. The middleware priority list persists in the kernel for the worker lifetime and affects middleware ordering for every subsequent request.
at line 190
Application
getApplication()
Get the application instance.