Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
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( |
||
19 | 'Listener provider must be instance of Yiisoft\EventDispatcher\Provider'); |
||
20 | } |
||
21 | $this->listenerProvider = $listenerProvider; |
||
22 | $this->container = $container; |
||
23 | } |
||
47 |