AbstractHandlerStack
class AbstractHandlerStack implements HandlerStackInterface
An abstract base class for implementing handler stacks.
Methods
Construct a new handler stack.
Gets the current handler without removing it from the stack.
Gets the current handler stack without changing the stack.
Pushes multiple handlers on to the stack.
Removes all handlers from the stack.
Restores a stack of handlers.
Temporarily bypass the current handler stack and execute a callable with the supplied handler.
Details
at line 27
__construct(
Isolator $isolator = null)
Construct a new handler stack.
at line 37
callable|null
handler()
Gets the current handler without removing it from the stack.
at line 53
array<callable>
handlerStack()
Gets the current handler stack without changing the stack.
at line 65
pushAll(
array $handlers)
Pushes multiple handlers on to the stack.
at line 75
array<callable>
clear()
Removes all handlers from the stack.
at line 91
restore(
array $handlers)
Restores a stack of handlers.
at line 110
mixed
executeWith(
callable $callable,
callable|null $handler = null)
Temporarily bypass the current handler stack and execute a callable with the supplied handler.
This method is useful for executing PHP code that relies upon handling techniques that are incompatible with Asplode