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