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