private function cookieDomainMatchesConfigUrl($cookie)
    {
        if (!array_key_exists('domain', $cookie)) {
            return true;
        }

        $setCookie = new SetCookie();
        $setCookie->setDomain($cookie['domain']);

        return $setCookie->matchesDomain(parse_url($this->config['url'], PHP_URL_HOST));
    }
private function cookieDomainMatchesConfigUrl($cookie)
    {
        if (!array_key_exists('domain', $cookie)) {
            return true;
        }

        $setCookie = new SetCookie();
        $setCookie->setDomain($cookie['domain']);

        return $setCookie->matchesDomain(parse_url($this->config['url'], PHP_URL_HOST));
    }
private function cookieDomainMatchesConfigUrl ( $ cookie ) { if ( ! array_key_exists ( 'domain' , $ cookie ) ) { return true ; } $ setCookie = new SetCookie ( ) ; $ setCookie -> setDomain ( $ cookie [ 'domain' ] ) ; return $ setCookie -> matchesDomain ( parse_url ( $ this -> config [ 'url' ] , PHP_URL_HOST ) ) ; }
Check if the cookie domain matches the config URL.

@param array|Cookie $cookie
@return bool
Check if the cookie domain matches the config URL .