Command\RoutesCommand::_renderRoutes PHP Method

_renderRoutes() private method

private _renderRoutes ( $routes = [] )
    private function _renderRoutes($routes = array())
    {
        $table = $this->getHelper('table');
        $table->setHeaders(array('URL Helper', 'HTTP Verb', 'Path', 'Controller#Action'));
        foreach ($routes as $route) {
            $method = $this->_getRuleMethod($route);
            $action = $route->getAction() ? '#' . $route->getAction() : $route->getAction();
            $controllerAction = $route->getController() . $action;
            $table->addRow(array($route->getName(), $method, $route->getUri(), $controllerAction));
            $this->_printExceptIfExists($route, $table);
        }
        $table->render($this->_output);
    }