Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | abstract class AbstractDoctrineMiddleware implements MiddlewareInterface |
||
16 | { |
||
17 | protected ManagerRegistry $managerRegistry; |
||
18 | |||
19 | protected ?string $entityManagerName; |
||
20 | |||
21 | public function __construct(ManagerRegistry $managerRegistry, ?string $entityManagerName = null) |
||
25 | } |
||
26 | |||
27 | final public function handle(Envelope $envelope, StackInterface $stack): Envelope |
||
36 | } |
||
37 | |||
38 | abstract protected function handleForManager(EntityManagerInterface $entityManager, Envelope $envelope, StackInterface $stack): Envelope; |
||
39 | } |
||
40 |