interface HttpKernelInterface implements HasMiddlewareDefinitionsInterface (View source)

Describes how a request is handled.

Methods

void
setMiddleware(array $middleware)

Register middleware.

void
setMiddlewareGroups(array $middleware_groups)

Register middleware groups.

array
uniqueMiddleware(array $middleware)

Filter array of middleware into a unique set.

array
expandMiddleware(array $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.

void
bootstrap()

Bootstrap the kernel.

ResponseInterface
run(RequestInterface $request, array $middleware, string|Closure $handler, array $arguments = [])

Run a response pipeline for the given request.

ResponseInterface|null
handle(RequestInterface $request, array $arguments = [])

Return a response for the given request.

Details

void setMiddleware(array $middleware)

Register middleware.

Parameters

array $middleware string> $middleware

Return Value

void

void setMiddlewareGroups(array $middleware_groups)

Register middleware groups.

Parameters

array $middleware_groups array> $middleware_groups

Return Value

void

array uniqueMiddleware(array $middleware)

Filter array of middleware into a unique set.

Parameters

array $middleware

Return Value

array

array expandMiddleware(array $middleware)

Expand array of middleware into an array of fully qualified class names.

Parameters

array $middleware

Return Value

array

array expandMiddlewareGroup(string $group)

Expand a middleware group into an array of fully qualified class names.

Parameters

string $group

Return Value

array

array expandMiddlewareMolecule(string $middleware)

Expand middleware into an array of fully qualified class names and any companion arguments.

Parameters

string $middleware

Return Value

array

string expandMiddlewareAtom(string $middleware)

Expand a single middleware a fully qualified class name.

Parameters

string $middleware

Return Value

string

void bootstrap()

Bootstrap the kernel.

Return Value

void

ResponseInterface run(RequestInterface $request, array $middleware, string|Closure $handler, array $arguments = [])

Run a response pipeline for the given request.

Parameters

RequestInterface $request
array $middleware
string|Closure $handler
array $arguments

Return Value

ResponseInterface

ResponseInterface|null handle(RequestInterface $request, array $arguments = [])

Return a response for the given request.

Parameters

RequestInterface $request
array $arguments

Return Value

ResponseInterface|null