mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-13 05:43:14 +00:00
Add message handler definition on PostTicketUPdateMessageHandler
This commit is contained in:
@@ -14,10 +14,13 @@ namespace Chill\TicketBundle\Messenger\Handler;
|
|||||||
use Chill\TicketBundle\Event\PostTicketUpdateEvent;
|
use Chill\TicketBundle\Event\PostTicketUpdateEvent;
|
||||||
use Chill\TicketBundle\Messenger\PostTicketUpdateMessage;
|
use Chill\TicketBundle\Messenger\PostTicketUpdateMessage;
|
||||||
use Chill\TicketBundle\Repository\TicketRepositoryInterface;
|
use Chill\TicketBundle\Repository\TicketRepositoryInterface;
|
||||||
|
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
|
||||||
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;
|
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;
|
||||||
|
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
|
||||||
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
|
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
|
||||||
|
|
||||||
final readonly class PostTicketUpdateMessageHandler
|
#[AsMessageHandler]
|
||||||
|
final readonly class PostTicketUpdateMessageHandler implements MessageHandlerInterface
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private EventDispatcherInterface $eventDispatcher,
|
private EventDispatcherInterface $eventDispatcher,
|
||||||
|
|||||||
Reference in New Issue
Block a user