Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function boot(WpExtensionInterface $extension, ServiceContainerInterface $container): void |
||
14 | { |
||
15 | if ($container instanceof ProviderContainerInterface) { |
||
16 | $container->addServiceProviders( |
||
17 | $extension->config('app.providers', []) |
||
18 | ); |
||
19 | } |
||
20 | |||
21 | if ($container instanceof ServiceCreatorInterface) { |
||
22 | $container->createServices($extension->config('app.services', [])); |
||
23 | } |
||
26 |