public findOneByHost ( string $hostname, boolean $onlyActive = false ) : |
||
$hostname | string | Hostname the domain should match with (eg. "localhost" or "www.neos.io") |
$onlyActive | boolean | Only include active domains |
리턴 |
public function findOneByHost($hostname, $onlyActive = false)
{
$allMatchingDomains = $this->findByHost($hostname, $onlyActive);
return count($allMatchingDomains) > 0 ? $allMatchingDomains[0] : null;
}