Adamgoose\Routing\Annotations\Annotations\Controller::setEndpointDomains PHP Méthode

setEndpointDomains() protected méthode

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