| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 57 | public function execute(InputInterface $input, OutputInterface $output) : int |
||
| 58 | { |
||
| 59 | $table = new Table($output); |
||
| 60 | $table->setStyle('box'); |
||
| 61 | |||
| 62 | $table->setHeaders([ |
||
| 63 | 'Name', |
||
| 64 | 'Host', |
||
| 65 | 'Verb', |
||
| 66 | 'Path', |
||
| 67 | ]); |
||
| 68 | |||
| 69 | foreach ($this->router->getRoutes() as $route) { |
||
| 70 | $table->addRow([ |
||
| 71 | $route->getName(), |
||
| 72 | $route->getHost() ?? 'ANY', |
||
| 73 | \implode(', ', $route->getMethods()), |
||
| 74 | path_plain($route->getPath()), |
||
| 75 | ]); |
||
| 76 | } |
||
| 77 | |||
| 78 | $table->render(); |
||
| 79 | |||
| 80 | return Command::SUCCESS; |
||
| 81 | } |
||
| 83 |