public function map(
        $httpMethods,
        string $pathTemplate,
        string $hostTemplate = null,
        bool $isHttpsOnly = false
    ): RouteBuilder {
        $this->applyGroupRouteTemplates($pathTemplate, $hostTemplate, $isHttpsOnly);
        $routeBuilder = new RouteBuilder(
            (array)$httpMethods,
            new UriTemplate($pathTemplate, $hostTemplate, $isHttpsOnly)
        );
        $this->applyGroupConstraints($routeBuilder);
        $this->applyGroupMiddleware($routeBuilder);
        $this->applyGroupAttributes($routeBuilder);
        $this->routeBuilders[] = $routeBuilder;

        return $routeBuilder;
    }
public function map(
        $httpMethods,
        string $pathTemplate,
        string $hostTemplate = null,
        bool $isHttpsOnly = false
    ): RouteBuilder {
        $this->applyGroupRouteTemplates($pathTemplate, $hostTemplate, $isHttpsOnly);
        $routeBuilder = new RouteBuilder(
            (array)$httpMethods,
            new UriTemplate($pathTemplate, $hostTemplate, $isHttpsOnly)
        );
        $this->applyGroupConstraints($routeBuilder);
        $this->applyGroupMiddleware($routeBuilder);
        $this->applyGroupAttributes($routeBuilder);
        $this->routeBuilders[] = $routeBuilder;

        return $routeBuilder;
    }
public function map ( $ httpMethods , string $ pathTemplate , string $ hostTemplate = null , bool $ isHttpsOnly = false ) : RouteBuilder { $ this -> applyGroupRouteTemplates ( $ pathTemplate , $ hostTemplate , $ isHttpsOnly ) ; $ routeBuilder = new RouteBuilder ( ( array ) $ httpMethods , new UriTemplate ( $ pathTemplate , $ hostTemplate , $ isHttpsOnly ) ) ; $ this -> applyGroupConstraints ( $ routeBuilder ) ; $ this -> applyGroupMiddleware ( $ routeBuilder ) ; $ this -> applyGroupAttributes ( $ routeBuilder ) ; $ this -> routeBuilders [ ] = $ routeBuilder ; return $ routeBuilder ; }
Creates a route builder with some values already set

@param array|string $httpMethods The HTTP method or list of methods the route uses
@param string $pathTemplate The path template
@param string|null $hostTemplate The host template
@param bool $isHttpsOnly Whether or not the route is HTTPS-only
@return RouteBuilder The configured route builder
Creates a route builder with some values already set