ActivationMiddleware
in package
implements
MiddlewareInterface
Execute the inner middleware according to an activation strategy.
Tags
Table of Contents
Interfaces
Properties
- $activated : Closure|bool
- $inner : mixed
Methods
- __construct() : mixed
- handle() : Envelope
Properties
$activated
private
Closure|bool
$activated
$inner
private
mixed
$inner
Methods
__construct()
public
__construct(MiddlewareInterface $inner, bool|callable $activated) : mixed
Parameters
- $inner : MiddlewareInterface
- $activated : bool|callable
handle()
public
handle(Envelope $envelope, StackInterface $stack) : Envelope
Parameters
- $envelope : Envelope
- $stack : StackInterface