class Middleware implements ExtenderInterface

Methods

__construct(string $frontend)

No description

add(string $middleware)

<p>Adds a new middleware to the frontend.</p>

replace(string $originalMiddleware, string $newMiddleware)

<p>Replaces an existing middleware of the frontend.</p>

remove(string $middleware)

<p>Removes a middleware from the frontend.</p>

insertBefore(string $originalMiddleware, string $newMiddleware)

<p>Inserts a middleware before an existing middleware.</p>

insertAfter(string $originalMiddleware, string $newMiddleware)

<p>Inserts a middleware after an existing middleware.</p>

extend(Container $container, Extension $extension = null)

No description

Details

__construct(string $frontend)

Parameters

string $frontend

Middleware add(string $middleware)

<p>Adds a new middleware to the frontend.</p>

Parameters

string $middleware

Return Value

Middleware

Middleware replace(string $originalMiddleware, string $newMiddleware)

<p>Replaces an existing middleware of the frontend.</p>

Parameters

string $originalMiddleware
string $newMiddleware

Return Value

Middleware

Middleware remove(string $middleware)

<p>Removes a middleware from the frontend.</p>

Parameters

string $middleware

Return Value

Middleware

Middleware insertBefore(string $originalMiddleware, string $newMiddleware)

<p>Inserts a middleware before an existing middleware.</p>

Parameters

string $originalMiddleware
string $newMiddleware

Return Value

Middleware

Middleware insertAfter(string $originalMiddleware, string $newMiddleware)

<p>Inserts a middleware after an existing middleware.</p>

Parameters

string $originalMiddleware
string $newMiddleware

Return Value

Middleware

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension