Skip to content

Commit

Permalink
fix TerminateStackListener
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Dec 3, 2024
1 parent 717bf38 commit 1338a57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/php/messenger-bundle/Listener/TerminateStackListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
use Symfony\Component\Console\ConsoleEvents;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Messenger\Event\WorkerMessageHandledEvent;
use Symfony\Component\Messenger\MessageBusInterface;

#[AsEventListener(KernelEvents::TERMINATE, 'onTerminate')]
#[AsEventListener(ConsoleEvents::TERMINATE, 'onTerminate')]
#[AsEventListener(WorkerMessageHandledEvent::class, method: 'onTerminate')]
final class TerminateStackListener
{
private array $callbacks = [];
Expand Down

0 comments on commit 1338a57

Please sign in to comment.