Skip to content

Commit

Permalink
* fix new message implemention need as Message handler annotaion
Browse files Browse the repository at this point in the history
  • Loading branch information
h2Entwicklung committed Nov 5, 2024
1 parent ec01c2d commit 583d0cc
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 583d0cc

Please sign in to comment.