| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
| 30 | Config::load(); |
||
| 31 | $publicDir = Config::get('directories.public'); |
||
| 32 | $route = $input->getArgument(self::ROUTE); |
||
| 33 | $stitcher = new Stitcher(); |
||
| 34 | |||
| 35 | $blanket = $stitcher->stitch($route); |
||
| 36 | $stitcher->save($blanket); |
||
| 37 | |||
| 38 | if ($route) { |
||
| 39 | $output->writeln("<fg=green>{$route}</> successfully generated in <fg=green>{$publicDir}</>."); |
||
| 40 | } else { |
||
| 41 | $output->writeln("Site successfully generated in <fg=green>{$publicDir}</>."); |
||
| 42 | } |
||
| 43 | |||
| 44 | return; |
||
| 45 | } |
||
| 46 | |||
| 48 |