HasMiddleware Trait

Aurora\Middleware Namespace


Properties

with

Middleware to include

protected $with = []: array

without

Middleware to exclude

protected $without = []: array

Methods

with

Add middleware to include

Parameters

  • mixed $middleware — Middleware to include

Return Value

  • $this

Signature

public function with(mixed $middleware)

without

Add middleware to exclude

Parameters

  • mixed $middleware — Middleware to exclude

Return Value

  • $this

Signature

public function without(mixed $middleware)

getStack

Get middleware stack

Return Value

  • array

Signature

public function getStack(): array

dispatch

Dispatch middleware

Parameters

  • Psr\Http\Message\ServerRequestInterface $request — Request instance
  • Psr\Container\ContainerInterface $container — Container instance
  • Closure $default — Default handler

Return Value

  • \ResponseInterface

Signature

public function dispatch(Psr\Http\Message\ServerRequestInterface $request, Psr\Container\ContainerInterface $container, Closure $default): Psr\Http\Message\ResponseInterface

getWith

Get middleware to include

Return Value

  • array

Signature

public function getWith(): array

getWithout

Get middleware to exclude

Return Value

  • array

Signature

public function getWithout(): array

Go to top