Conditions | 4 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function bootstrap(): void |
||
23 | { |
||
24 | $config = $this->container->make('config'); |
||
25 | |||
26 | foreach ($this->getDetectedConfigs() as $configFile) { |
||
27 | $configFilename = pathinfo($configFile)['filename']; |
||
28 | |||
29 | $config->set($configFilename, require $configFile); |
||
30 | } |
||
31 | |||
32 | if ($name = $config->get('app.name')) { |
||
33 | $this->application->setName($name); |
||
34 | } |
||
35 | |||
36 | if ($version = $config->get('app.version')) { |
||
37 | $this->application->setVersion($version); |
||
38 | } |
||
39 | } |
||
40 | |||
53 |