Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function __construct(ListenerProviderInterface $listenerProvider, ContainerInterface $container) |
||
16 | { |
||
17 | if (!($listenerProvider instanceof Provider)) { |
||
18 | throw new \InvalidArgumentException('Listener provider must be an instance of \Yiisoft\EventDispatcher\Provider.'); |
||
19 | } |
||
20 | $this->listenerProvider = $listenerProvider; |
||
21 | $this->container = $container; |
||
22 | } |
||
46 |