public function addRoute($route, $class, $action, $parameters = [], $hostparameters = [])
    {
        $this->log->debug('adding route : ' . $route . ' to class ' . $class . ' and action ' . $action);

        $this->routes[$route] = [
            "class" => $class,
            "action" => $action,
            "parameters" => $parameters,
            "hostparameters" => $hostparameters
        ];
        return $this;
    }
public function addRoute($route, $class, $action, $parameters = [], $hostparameters = [])
    {
        $this->log->debug('adding route : ' . $route . ' to class ' . $class . ' and action ' . $action);

        $this->routes[$route] = [
            "class" => $class,
            "action" => $action,
            "parameters" => $parameters,
            "hostparameters" => $hostparameters
        ];
        return $this;
    }
public function addRoute ( $ route , $ class , $ action , $ parameters = [ ] , $ hostparameters = [ ] ) { $ this -> log -> debug ( 'adding route : ' . $ route . ' to class ' . $ class . ' and action ' . $ action ) ; $ this -> routes [ $ route ] = [ "class" => $ class , "action" => $ action , "parameters" => $ parameters , "hostparameters" => $ hostparameters ] ; return $ this ; }
add route to list of known routes

@param String $route beginning string of the route
@param String $class to be used for this route
@param String $action method to be called
@param string[] $parameters list of parameters that should be retrieved from url
@param array $hostparameters - allows to use subdomains as parameters
@return self
add route to list of known routes