N98\Magento\Command\System\Check\Settings\CookieDomainCheckAbstract::checkSettings PHP Метод

checkSettings() защищенный Метод

protected checkSettings ( Result $result, Mage_Core_Model_Store $store, string $baseUrl, string $cookieDomain )
$result N98\Magento\Command\System\Check\Result
$store Mage_Core_Model_Store
$baseUrl string setting
$cookieDomain string setting
    protected function checkSettings(Result $result, \Mage_Core_Model_Store $store, $baseUrl, $cookieDomain)
    {
        $errorMessage = 'cookie-domain and ' . $this->class . ' base-URL do not match';
        if (strlen($cookieDomain)) {
            $isValid = $this->validateCookieDomainAgainstUrl($cookieDomain, $baseUrl);
            $result->setStatus($isValid);
            if ($isValid) {
                $result->setMessage('<info>Cookie Domain (' . $this->class . '): <comment>' . $cookieDomain . '</comment> of Store: <comment>' . $store->getCode() . '</comment> - OK</info>');
            } else {
                $result->setMessage('<error>Cookie Domain (' . $this->class . '): <comment>' . $cookieDomain . '</comment> of Store: <comment>' . $store->getCode() . '</comment> - ERROR: ' . $errorMessage . '</error>');
            }
        } else {
            $result->setMessage('<info>Empty cookie Domain (' . $this->class . ') of Store: <comment>' . $store->getCode() . '</comment> - OK</info>');
        }
    }