Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
13 | 2 | public function apply(Injector $injector): void |
|
14 | { |
||
15 | // Assume that the container will be shared |
||
16 | 2 | $injector->share(ContainerInterface::class); |
|
17 | |||
18 | // Use the injector as the preferred container implementation |
||
19 | 2 | $injector->alias(ContainerInterface::class, InjectorContainer::class); |
|
20 | |||
21 | // The container will wrap this injector |
||
22 | 2 | $injector->define(InjectorContainer::class, [':injector' => $injector]); |
|
23 | 2 | } |
|
24 | } |
||
25 |