Documentation

HttpCodeActivationStrategy
in package
implements ActivationStrategyInterface

FinalYes

Activation strategy that ignores certain HTTP codes.

Tags
author

Shaun Simmons shaun@envysphere.com

author

Pierrick Vignand pierrick.vignand@gmail.com

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

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>
Return values
bool

        
On this page

Search results