I try to handle an exception from a Symfony console command in a Symfony 4 project.
This is my event listener in services.yaml:
kernel.event_listener:
class: App\Application\EventListener\ExceptionListener
arguments:
- '@logger'
- '@jms_serializer'
- '@translator.default'
tags:
- { name: kernel.event_listener, event: kernel.exception, method: onConsoleException }
What is the tag for this treatment?