Category: symfony-messenger

How to set event name and delay time in Envelope?

I’m using symfony 4 + enqueue (https://github.com/sroze/messenger-enqueue-transport + https://packagist.org/packages/enqueue/pheanstalk) to run async jobs in beanstalk. Right now I have: /** * @var SymfonyComponentEventDispatcherEventDispatcherInterface */ private $eventDispatcher; $event = new ArticleEvent(“test title”, “test description”); $this->eventDispatcher->dispatch($event, “article.publish”); But I want this job…

Switch sendmail Parameters in symfony/mailer when using symfony/messenger

The local Development Machine uses msmtp for sending Mails, which works fine. BUT it does not accept /usr/sbin/sendmail -bs, it only works with /usr/sbin/sendmail -t. I can see that I could change this when using other parameters for the SendmailTransport…

Symfony 5 Messenger not auto configuring message handler

I am new to Symfony framework and am trying to set up a project with Messenger (https://symfony.com/doc/current/messenger.html). My understanding is after setting up the handler class with “implements MessageHandlerInterface” the handler should be available for use but it does not…

Restrict message handler to multiple buses with symfony messenger

As explained in the documentation of the Symfony messenger component, by default message handlers handle messages from all message buses. However, one can restrict a message handler to a specific bus like this: # config/services.yaml services: AppMessageHandlerSomeCommandHandler: tags: [{ name:…