LogDeferredCallbackFailure

Class
Read only: Yes Final: Yes

Listener that logs failed deferred callback executions using a PSR-3 compatible logger.

Description

This listener MUST be used to log all deferred callback failures. It SHALL log detailed information about the exception, callback, and arguments. This class MUST NOT throw exceptions during logging.

Table of Contents

Properties

 : LoggerInterface

Methods

__construct()

Constructs a new LogDeferredCallbackFailure listener.

 : mixed
__invoke()

Handles the DeferredCallbackFailed event by logging the failure.

 : void
Properties
Methods

__construct()

Public

Constructs a new LogDeferredCallbackFailure listener.

public __construct(LoggerInterface  $logger) : mixed
Parameters
$logger : LoggerInterface

Description

the PSR-3 logger to use for logging failures

__invoke()

Public

Handles the DeferredCallbackFailed event by logging the failure.

public __invoke(DeferredCallbackFailed  $event) : void

Description

This method MUST log the exception details and callback information. It MUST NOT throw exceptions.

Parameters

Description

the event representing the callback failure