MiddlewareStackResolver
This class resolves middleware stacks from defined configuration in all active packages.
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
- getCacheIdentifier() : string
- loadConfiguration() : ArrayObject
- Lazy load configuration from the container
- sanitizeMiddlewares() : array<string|int, mixed>
- Order each stack and sanitize to a plain array
Properties
$cache
protected
PhpFrontend
$cache
$container
protected
ContainerInterface
$container
$dependencyOrderingService
protected
DependencyOrderingService
$dependencyOrderingService
Methods
__construct()
public
__construct(ContainerInterface $container, DependencyOrderingService $dependencyOrderingService, PhpFrontend $cache, string $baseCacheIdentifier) : mixed
Parameters
- $container : ContainerInterface
- $dependencyOrderingService : DependencyOrderingService
- $cache : PhpFrontend
- $baseCacheIdentifier : string
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
Return values
array<string|int, mixed>warmupCaches()
public
warmupCaches(CacheWarmupEvent $event) : void
Parameters
- $event : CacheWarmupEvent
getCacheIdentifier()
protected
getCacheIdentifier(string $stackName) : string
Parameters
- $stackName : string
Return values
stringloadConfiguration()
Lazy load configuration from the container
protected
loadConfiguration() : ArrayObject
Return values
ArrayObjectsanitizeMiddlewares()
Order each stack and sanitize to a plain array
protected
sanitizeMiddlewares(ArrayObject $allMiddlewares) : array<string|int, mixed>
Parameters
- $allMiddlewares : ArrayObject