MiddlewareStackResolver

This class resolves middleware stacks from defined configuration in all active packages.

Internal

Table of Contents

Properties

$cache  : PhpFrontend
$container  : ContainerInterface
$dependencyOrderingService  : DependencyOrderingService

Methods

__construct()  : mixed
resolve()  : array<string|int, mixed>
Returns the middleware stack registered in all packages within Configuration/RequestMiddlewares.php which are sorted by given dependency requirements
warmupCaches()  : void
computeMiddlewareStack()  : array<string|int, mixed>
getCacheIdentifier()  : string
getFromCache()  : array<string|int, mixed>|null
loadConfiguration()  : ArrayObject
Lazy load configuration from the container
sanitizeMiddlewares()  : array<string|int, mixed>
Order each stack and sanitize to a plain array

Properties

$container

protected ContainerInterface $container

Methods

resolve()

Returns the middleware stack registered in all packages within Configuration/RequestMiddlewares.php which are sorted by given dependency requirements

public resolve(string $stackName) : array<string|int, mixed>
Parameters
$stackName : string
Tags
throws
InvalidDataException
throws
Exception
Return values
array<string|int, mixed>

computeMiddlewareStack()

protected computeMiddlewareStack(string $stackName) : array<string|int, mixed>
Parameters
$stackName : string
Return values
array<string|int, mixed>

getCacheIdentifier()

protected getCacheIdentifier(string $stackName) : string
Parameters
$stackName : string
Return values
string

getFromCache()

protected getFromCache(string $stackName) : array<string|int, mixed>|null
Parameters
$stackName : string
Return values
array<string|int, mixed>|null

loadConfiguration()

Lazy load configuration from the container

protected loadConfiguration() : ArrayObject
Return values
ArrayObject

sanitizeMiddlewares()

Order each stack and sanitize to a plain array

protected sanitizeMiddlewares(ArrayObject $allMiddlewares) : array<string|int, mixed>
Parameters
$allMiddlewares : ArrayObject
Return values
array<string|int, mixed>

        
On this page

Search results