public function isOneOfHosts(array $hosts)
    {
        foreach ($hosts as $host) {
            if ($this->matchHost($host)) {
                return true;
            }
        }

        return false;
    }
public function isOneOfHosts(array $hosts)
    {
        foreach ($hosts as $host) {
            if ($this->matchHost($host)) {
                return true;
            }
        }

        return false;
    }
public function isOneOfHosts ( array $ hosts ) { foreach ( $ hosts as $ host ) { if ( $ this -> matchHost ( $ host ) ) { return true ; } } return false ; }
Check if the request host is in the list of host.

@param array $hosts

@return bool
Check if the request host is in the list of host .