Conditions | 4 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function bootstrap(): void |
||
24 | { |
||
25 | $config = $this->container->make('config'); |
||
26 | |||
27 | if ($name = $config->get('app.name')) { |
||
28 | $this->application->setName($name); |
||
29 | } |
||
30 | |||
31 | if ($version = $config->get('app.version')) { |
||
32 | $this->application->setVersion($version); |
||
33 | } |
||
34 | |||
35 | if ($config->get('cache') === null) { |
||
36 | $config->set('cache', $this->getCacheConfig()); |
||
37 | } |
||
38 | } |
||
39 | |||
61 |