public function getRoute($name, array $args = [])
    {
        $name = strtolower($name);

        if (isset($this->routes[$name])) {
            $route = $this->routes[$name];

            foreach ($args as $k => $v) {
                $route = str_replace(':' . $k, $v, $route);
            }
            return $route;
        }
        return null;
    }
public function getRoute($name, array $args = [])
    {
        $name = strtolower($name);

        if (isset($this->routes[$name])) {
            $route = $this->routes[$name];

            foreach ($args as $k => $v) {
                $route = str_replace(':' . $k, $v, $route);
            }
            return $route;
        }
        return null;
    }
public function getRoute ( $ name , array $ args = [ ] ) { $ name = strtolower ( $ name ) ; if ( isset ( $ this -> routes [ $ name ] ) ) { $ route = $ this -> routes [ $ name ] ; foreach ( $ args as $ k => $ v ) { $ route = str_replace ( ':' . $ k , $ v , $ route ) ; } return $ route ; } return null ; }
Register a new listener into the specified event.

@param string $name
@param array $args

@return string|null
Register a new listener into the specified event .