public function hostMatches($host)
    {
        $pattern = '@^' . str_replace('\*', '.*', preg_quote($this->options['_host'], '@')) . '$@';

        return preg_match($pattern, $host) !== 0;
    }
public function hostMatches($host)
    {
        $pattern = '@^' . str_replace('\*', '.*', preg_quote($this->options['_host'], '@')) . '$@';

        return preg_match($pattern, $host) !== 0;
    }
public function hostMatches ( $ host ) { $ pattern = '@^' . str_replace ( '\*' , '.*' , preg_quote ( $ this -> options [ '_host' ] , '@' ) ) . '$@' ; return preg_match ( $ pattern , $ host ) !== 0 ; }
Check to see if the host matches the route requirements

@param string $host The request's host name
@return bool Whether or not the host matches any conditions set in for this route.
Check to see if the host matches the route requirements