| Conditions | 2 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | protected function handleForManager( |
||
| 18 | EntityManagerInterface $entityManager, |
||
| 19 | Envelope $envelope, |
||
| 20 | StackInterface $stack |
||
| 21 | ): Envelope { |
||
| 22 | try { |
||
| 23 | return $stack->next()->handle($envelope, $stack); |
||
| 24 | } finally { |
||
| 25 | if (null !== $envelope->last(ConsumedByWorkerStamp::class)) { |
||
| 26 | $entityManager->clear(); |
||
| 27 | } |
||
| 31 |