MiddlewareStackResolver

class \TYPO3\CMS\Core\Http\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
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
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

Parameters

$stackName : string

Tags

throws
InvalidDataException
throws
Exception

Return values

array

getCacheIdentifier()

protected getCacheIdentifier(string $stackName) : string

Parameters

$stackName : string

Return values

string

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

Parameters

$allMiddlewares : ArrayObject

Return values

array
On this page