| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 19 | public function __invoke() |
||
| 20 | { |
||
| 21 | /** @var ConfigFactory $configFactory */ |
||
| 22 | $configFactory = $this->container->get(ConfigFactory::class); |
||
| 23 | |||
| 24 | // todo: implement arbitrary config files loading. |
||
| 25 | $config = $configFactory->createFromFile($this->kernel->getRootPath() . '/config/app.php'); |
||
| 26 | |||
| 27 | $this->container->bindInstance(Config::class, $config); |
||
| 28 | } |
||
| 29 | } |