E577 Updated stemp name · symfony/symfony@4c2a234 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c2a234

Browse files
committed
Updated stemp name
1 parent a0dc19c commit 4c2a234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Doctrine/Messenger/EventSubscriber/EntityMessageCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Bridge\Doctrine\Messenger\EntityMessage\EntityMessageCollectionInterface;
1818
use Symfony\Component\Messenger\Envelope;
1919
use Symfony\Component\Messenger\MessageBusInterface;
20-
use Symfony\Component\Messenger\Middleware\Configuration\Transaction;
20+
use Symfony\Component\Messenger\Stamp\DispatchAfterCurrentBusStamp;
2121

2222
/**
2323
* Doctrine listener that listens to Persist, Update and Remove. Every time this is
@@ -65,7 +65,7 @@ private function collectEventsFromEntity(LifecycleEventArgs $message)
6565

6666
if ($entity instanceof EntityMessageCollectionInterface) {
6767
foreach ($entity->getRecordedMessages() as $message) {
68-
$this->messageBus->dispatch((new Envelope($message))->with(new Transaction()));
68+
$this->messageBus->dispatch((new Envelope($message))->with(new DispatchAfterCurrentBusStamp()));
6969
}
7070

7171
$entity->resetRecordedMessages();

0 commit comments

Comments
 (0)
0