ErrorHandlerStack
class ErrorHandlerStack extends AbstractHandlerStack
Manages the PHP error handler stack.
Methods
Gets the current handler without removing it from the stack.
Gets the current handler stack without changing the stack.
Temporarily bypass the current handler stack and execute a callable with the supplied handler.
Pushes a handler on to the stack.
Pops a handler off the stack.
Details
in
AbstractHandlerStack at line 27
__construct(
Isolator $isolator = null)
Construct a new handler stack.
in
AbstractHandlerStack at line 37
callable|null
handler()
Gets the current handler without removing it from the stack.
in
AbstractHandlerStack at line 53
array<callable>
handlerStack()
Gets the current handler stack without changing the stack.
in
AbstractHandlerStack at line 65
pushAll(
array $handlers)
Pushes multiple handlers on to the stack.
in
AbstractHandlerStack at line 75
array<callable>
clear()
Removes all handlers from the stack.
in
AbstractHandlerStack at line 91
restore(
array $handlers)
Restores a stack of handlers.
in
AbstractHandlerStack 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
at line 26
push(
callable $handler)
Pushes a handler on to the stack.
at line 36
callable|null
pop()
Pops a handler off the stack.