-
-
Notifications
You must be signed in to change notification settings - Fork 0
LogErrorEventListener
github-actions edited this page Apr 6, 2026
·
1 revision
Log dispatcher error events through a PSR-3 logger.
The logged context includes both the throwable and the emitted
- See: \FastForward\EventDispatcher\Event\ErrorEvent.
- Full name:
\FastForward\EventDispatcher\Listener\LogErrorEventListener - This class is marked as final and can't be subclassed
- This class is a Final class
Create a listener that records dispatcher failures.
public __construct(\Psr\Log\LoggerInterface $logger): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$logger |
\Psr\Log\LoggerInterface | logger used to record error events |
Log the throwable carried by the provided error event.
public __invoke(\FastForward\EventDispatcher\Event\ErrorEvent $event): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$event |
\FastForward\EventDispatcher\Event\ErrorEvent | error event emitted by the dispatcher |