Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function __invoke( |
||
23 | ContainerInterface $container, |
||
24 | string $requestedName, |
||
25 | array $options = null |
||
26 | ): ImmutableEventDispatcher { |
||
27 | $options = $options ?? $this->getServiceOptions($container, $requestedName, 'event_dispatchers'); |
||
28 | |||
29 | $listenerProvider = $this->getListenerProvider( |
||
30 | $container, |
||
31 | $options['listener_provider'] ?? ListenerProviderInterface::class, |
||
32 | $requestedName |
||
33 | ); |
||
34 | |||
35 | return new ImmutableEventDispatcher($listenerProvider); |
||
36 | } |
||
38 |