Skip to content

Commit

Permalink
Merge pull request #561 from H2-invent/hotfix/fix-messagenger-new-ann…
Browse files Browse the repository at this point in the history
…otiation

* fix new message implemention need as Message handler annotaion
  • Loading branch information
holzi1005 authored Nov 5, 2024
2 parents 75e659e + 8e1126e commit 424b9e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/MessageHandler/CustomMailerMessageDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Mailer\Transport;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;

class CustomMailerMessageDispatcher implements MessageHandlerInterface
#[AsMessageHandler]
class CustomMailerMessageDispatcher
{
public function __construct(
private MailerInterface $mailer,
Expand Down
5 changes: 3 additions & 2 deletions src/MessageHandler/LobbyLeaverMessageDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
use App\Service\Lobby\ToModeratorWebsocketService;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;

class LobbyLeaverMessageDispatcher implements MessageHandlerInterface
#[AsMessageHandler]
class LobbyLeaverMessageDispatcher
{
private LoggerInterface $logger;
private $toModerator;
Expand Down

0 comments on commit 424b9e5

Please sign in to comment.