Total Complexity | 2 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | #[AsEventListener(ConsoleEvents::TERMINATE, priority: Transactional::LISTENER_PRIORITY)] |
||
26 | #[AsEventListener(KernelEvents::TERMINATE, priority: Transactional::LISTENER_PRIORITY)] |
||
27 | class CommitTransactionOnTerminateEventListener |
||
28 | { |
||
29 | public function __construct( |
||
30 | private readonly CommitTransactionInterface $service, |
||
31 | ) {} |
||
32 | |||
33 | public function __invoke(): void |
||
36 | } |
||
37 | } |
||
38 |