| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 28 | { |
||
| 29 | $configFile = (string)$input->getArgument('config'); |
||
| 30 | |||
| 31 | if (!file_exists($configFile)) { |
||
| 32 | throw new \RuntimeException('Unable to find config file.'); |
||
| 33 | } |
||
| 34 | |||
| 35 | $configArray = Yaml::parse(file_get_contents($configFile)); |
||
| 36 | |||
| 37 | $healthFoundation = HealthFoundationFactory::from($configArray); |
||
| 38 | $format = FormatFactory::from($configArray); |
||
| 39 | |||
| 40 | $runResult = $healthFoundation->runHealthCheck(); |
||
| 41 | |||
| 42 | $format->handle($runResult); |
||
| 43 | } |
||
| 45 |