| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __invoke($module, string $classDir): Container |
||
| 17 | { |
||
| 18 | $oneModule = $this->getModule($module); |
||
| 19 | // install built-in module |
||
| 20 | $appModule = (new BuiltinModule())($oneModule); |
||
| 21 | $container = $appModule->getContainer(); |
||
| 22 | // Compile null objects |
||
| 23 | (new CompileNullObject())($container, $classDir); |
||
| 24 | // Compile aspects |
||
| 25 | $container->weaveAspects(new Compiler($classDir)); |
||
| 26 | |||
| 27 | return $container; |
||
| 28 | } |
||
| 52 |