Total Complexity | 8 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ServiceContainerLauncher implements ServiceContainerLauncherInterface |
||
12 | { |
||
13 | protected ServiceContainerInterface $container; |
||
14 | |||
15 | public function __construct(ServiceContainerInterface $container) |
||
16 | { |
||
17 | $this->container = $container; |
||
18 | } |
||
19 | |||
20 | public function maybeAddServices(iterable $services) |
||
21 | { |
||
22 | if ($this->container instanceof ServiceCreatorInterface) { |
||
23 | $this->container->createServices($services); |
||
|
|||
24 | } |
||
25 | } |
||
26 | |||
27 | public function maybeAddProviders(iterable $providers) |
||
32 | } |
||
33 | } |
||
34 | } |
||
35 | |||
36 | public function maybeBootProviders() |
||
40 | } |
||
41 | } |
||
43 |