Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public static function handleInput(InputInterface $input) |
||
20 | { |
||
21 | $configOption = $input->getOption('configuration'); |
||
22 | $configFile = ConfigLocator::locate($configOption); |
||
23 | $configurationHolder = ConfigLoader::loadConfig($configFile); |
||
|
|||
24 | |||
25 | $bootstrap = $configurationHolder->getBootstrap(); |
||
26 | if (null !== $input->getOption('bootstrap')) { |
||
27 | $bootstrap = $input->getOption('bootstrap'); |
||
28 | } |
||
29 | |||
30 | if ($bootstrap) { |
||
31 | FileLoader::loadFile($bootstrap); |
||
32 | } |
||
33 | |||
34 | return $configurationHolder; |
||
35 | } |
||
37 |