public function addRoute(Route $route) : ParsedRoute
    {
        $route = $this->applyGroupSettings($route);
        $parsedRoute = $this->parser->parse($route);
        $this->routeCollection->add($parsedRoute);

        return $parsedRoute;
    }
public function addRoute(Route $route) : ParsedRoute
    {
        $route = $this->applyGroupSettings($route);
        $parsedRoute = $this->parser->parse($route);
        $this->routeCollection->add($parsedRoute);

        return $parsedRoute;
    }
public function addRoute ( Route $ route ) : ParsedRoute { $ route = $ this -> applyGroupSettings ( $ route ) ; $ parsedRoute = $ this -> parser -> parse ( $ route ) ; $ this -> routeCollection -> add ( $ parsedRoute ) ; return $ parsedRoute ; }
Adds a route to the router

@param Route $route The route to add
@return ParsedRoute The route with the group settings applied
Adds a route to the router