Adamgoose\Routing\Annotations\Annotations\Controller::setEndpointDomains PHP Method

setEndpointDomains() protected method

Set the domain on the endpoints.
protected setEndpointDomains ( EndpointCollection $endpoints ) : void
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
return void
    protected function setEndpointDomains(EndpointCollection $endpoints)
    {
        foreach ($endpoints->getAllPaths() as $path) {
            if (is_null($path->domain)) {
                $path->domain = $this->domain;
            }
        }
    }