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