Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function __construct(AbstractModule $module, string $classDir) |
||
29 | { |
||
30 | $module->install(new AssistedModule()); |
||
31 | $this->container = $module->getContainer(); |
||
32 | $this->classDir = $classDir; |
||
33 | $this->container->weaveAspects(new Compiler($this->classDir)); |
||
34 | |||
35 | // builtin injection |
||
36 | (new Bind($this->container, InjectorInterface::class))->toInstance(new Injector($module)); |
||
37 | } |
||
67 |