| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
| 41 | $route = $input->getArgument(self::ROUTE); |
||
| 42 | $blanket = $this->stitcher->stitch($route); |
||
| 43 | $this->stitcher->save($blanket); |
||
| 44 | |||
| 45 | $publicDir = Stitcher::getParameter('directories.public'); |
||
| 46 | |||
| 47 | if ($route) { |
||
| 48 | $output->writeln("<fg=green>{$route}</> successfully generated in <fg=green>{$publicDir}</>."); |
||
| 49 | } else { |
||
| 50 | $output->writeln("Site successfully generated in <fg=green>{$publicDir}</>."); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 55 |