public function addRoute($expression, $route)
    {
        //Detect command expression
        if (strpos($expression, '*') !== false) {
            return $this->addRegexpRoute($expression, $route);
        } else {
            return $this->addSimpleRoute($expression, $route);
        }
    }
public function addRoute($expression, $route)
    {
        //Detect command expression
        if (strpos($expression, '*') !== false) {
            return $this->addRegexpRoute($expression, $route);
        } else {
            return $this->addSimpleRoute($expression, $route);
        }
    }
public function addRoute ( $ expression , $ route ) { //Detect command expression if ( strpos ( $ expression , '*' ) !== false ) { return $ this -> addRegexpRoute ( $ expression , $ route ) ; } else { return $ this -> addSimpleRoute ( $ expression , $ route ) ; } }
Add new route.

@param string $expression Either simple expression, or RegExp describing route.
@param string $route Route name.

@return bool True, if route has been set, false otherwise.
Add new route .