<plugin root>/MessageQueue/Message
. In this example, we create a SmsNotification
that contains a string with content.SmsNotification
. We will name this service ExampleSender
. In this service we need to inject the Symfony\Component\Messenger\MessageBusInterface
, that is needed to send the message through the desired bus, which is called messenger.bus.shopware
.Symfony\Component\Messenger\Envelope
in our service instead with the necessary stamps. In this example below, we use the Symfony\Component\Messenger\Stamp\DelayStamp
, which tells the queue to process the message later.encrypted.messenger.bus.shopware
rather than the messenger.bus.shopware
message bus. The encrypted bus will handle encryption and decryption for you.