HttpCodeActivationStrategy
in package
implements
ActivationStrategyInterface
FinalYes
Activation strategy that ignores certain HTTP codes.
Tags
Table of Contents
Interfaces
- ActivationStrategyInterface
- Interface for activation strategies for the FingersCrossedHandler.
Properties
- $exclusions : array<string|int, mixed>
- $inner : mixed
- $requestStack : mixed
Methods
- __construct() : mixed
- isHandlerActivated() : bool
- Returns whether the given record activates the handler.
Properties
$exclusions
private
array<string|int, mixed>
$exclusions
$inner
private
mixed
$inner
$requestStack
private
mixed
$requestStack
Methods
__construct()
public
__construct(mixed $requestStack, array<string|int, mixed> $exclusions, mixed $inner) : mixed
Parameters
- $requestStack : mixed
- $exclusions : array<string|int, mixed>
-
each exclusion must have a "code" and "urls" keys
- $inner : mixed
isHandlerActivated()
Returns whether the given record activates the handler.
public
isHandlerActivated(array<string|int, mixed> $record) : bool
Parameters
- $record : array<string|int, mixed>