HttpKernelInterface
interface HttpKernelInterface implements HasMiddlewareDefinitionsInterface (View source)
Describes how a request is handled.
Methods
Register middleware groups.
Filter array of middleware into a unique set.
Expand array of middleware into an array of fully qualified class names.
Expand a middleware group into an array of fully qualified class names.
Expand middleware into an array of fully qualified class names and any companion arguments.
Expand a single middleware a fully qualified class name.
Bootstrap the kernel.
Run a response pipeline for the given request.
Details
void
setMiddleware(array $middleware)
Register middleware.
void
setMiddlewareGroups(array $middleware_groups)
Register middleware groups.
string[]
uniqueMiddleware(array[] $middleware)
Filter array of middleware into a unique set.
array[]
expandMiddleware(string[] $middleware)
Expand array of middleware into an array of fully qualified class names.
array[]
expandMiddlewareGroup(string $group)
Expand a middleware group into an array of fully qualified class names.
array[]
expandMiddlewareMolecule(string $middleware)
Expand middleware into an array of fully qualified class names and any companion arguments.
string
expandMiddlewareAtom(string $middleware)
Expand a single middleware a fully qualified class name.
at line 27
void
bootstrap()
Bootstrap the kernel.
at line 38
ResponseInterface
run(RequestInterface $request, string[] $middleware, string|Closure|Handler $handler, array $arguments = [])
Run a response pipeline for the given request.
at line 47
ResponseInterface|null
handle(RequestInterface $request, array $arguments = [])
Return a response for the given request.