| Conditions | 2 |
| Paths | 5 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 44 | public function handle(Args $args, IO $io) |
||
| 45 | { |
||
| 46 | $this->configurationLoader->setRootDirectory($args->getOption('config')); |
||
| 47 | |||
| 48 | try { |
||
| 49 | |||
| 50 | $runner = new Runner( |
||
| 51 | new UrlProvider($this->configurationLoader), |
||
| 52 | GuzzleClient::createClient() |
||
| 53 | ); |
||
| 54 | |||
| 55 | $renderer = RendererFactory::create($args->getOption('format'), $io); |
||
| 56 | $results = $runner->run(); |
||
| 57 | $renderer->render($results); |
||
| 58 | |||
| 59 | } catch (ConfigurationLoadingException $e) { |
||
| 60 | $io->writeLine( |
||
| 61 | sprintf( |
||
| 62 | '<info>There is no configuration file in</info> "%s"', |
||
| 63 | $this->configurationLoader->getRootDirectory() |
||
| 64 | ) |
||
| 65 | ); |
||
| 66 | } |
||
| 67 | } |
||
| 68 | } |
||
| 69 |