public function listCommand()
    {
        $this->outputLine('Currently registered routes:');
        /** @var Route $route */
        foreach ($this->router->getRoutes() as $index => $route) {
            $uriPattern = $route->getUriPattern();
            $this->outputLine(str_pad(($index + 1) . '. ' . $uriPattern, 80) . $route->getName());
        }
    }
public function listCommand()
    {
        $this->outputLine('Currently registered routes:');
        /** @var Route $route */
        foreach ($this->router->getRoutes() as $index => $route) {
            $uriPattern = $route->getUriPattern();
            $this->outputLine(str_pad(($index + 1) . '. ' . $uriPattern, 80) . $route->getName());
        }
    }
public function listCommand ( ) { $ this -> outputLine ( 'Currently registered routes:' ) ; /** @var Route $route */ foreach ( $ this -> router -> getRoutes ( ) as $ index => $ route ) { $ uriPattern = $ route -> getUriPattern ( ) ; $ this -> outputLine ( str_pad ( ( $ index + 1 ) . '. ' . $ uriPattern , 80 ) . $ route -> getName ( ) ) ; } }
List the known routes

This command displays a list of all currently registered routes.

@return void
List the known routes