Cake\Shell\RoutesShell::generate PHP Method

generate() public method

Takes variadic arguments of key/value pairs.
public generate ( ) : null | false
return null | false
    public function generate()
    {
        try {
            $args = $this->_splitArgs($this->args);
            $url = Router::url($args);
            $this->out("> {$url}");
            $this->out();
        } catch (MissingRouteException $e) {
            $this->err("<warning>The provided parameters do not match any routes.</warning>");
            $this->out();
            return false;
        }
    }