public function map($method, $route, $action)
    {
        return $this->getRouter()->map($method, $route, $this->bindClosureToInstance($action, $this));
    }
public function map($method, $route, $action)
    {
        return $this->getRouter()->map($method, $route, $this->bindClosureToInstance($action, $this));
    }
public function map ( $ method , $ route , $ action ) { return $ this -> getRouter ( ) -> map ( $ method , $ route , $ this -> bindClosureToInstance ( $ action , $ this ) ) ; }
Add a route to the map.

@param $method
@param $route
@param $action

@return \League\Route\Route
Add a route to the map .