Neos\Neos\Domain\Repository\DomainRepository::findOneByHost PHP Метод

findOneByHost() публичный Метод

Find the best matching active domain for the given hostname.
public findOneByHost ( string $hostname, boolean $onlyActive = false ) : Domain
$hostname string Hostname the domain should match with (eg. "localhost" or "www.neos.io")
$onlyActive boolean Only include active domains
Результат Neos\Neos\Domain\Model\Domain
    public function findOneByHost($hostname, $onlyActive = false)
    {
        $allMatchingDomains = $this->findByHost($hostname, $onlyActive);
        return count($allMatchingDomains) > 0 ? $allMatchingDomains[0] : null;
    }