Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 81.25% |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
17 | class EventServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface |
||
18 | { |
||
19 | 3 | public const DIPATCHER_NAME = 'events'; |
|
20 | |||
21 | 3 | /** |
|
22 | 3 | * @inheritdoc |
|
23 | 3 | */ |
|
24 | public function register() |
||
27 | } |
||
28 | |||
29 | 3 | public function boot() |
|
30 | 3 | { |
|
31 | $dispatcher = $this->getContainer()->get(static::DIPATCHER_NAME); |
||
32 | 3 | $provider = new RegisterDiscoveredEvents($dispatcher); |
|
33 | $provider->register(); |
||
34 | 3 | } |
|
35 | 3 | ||
36 | protected function registerDispatcher() |
||
40 | 3 | }); |
|
41 | 3 | } |
|
42 | |||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function provides(): array |
||
57 |