scopeConfig = $scopeConfig; } public function isEnabled(): bool { return $this->scopeConfig->isSetFlag(self::XML_PATH_ENABLED, ScopeInterface::SCOPE_STORE); } public function getMarketCookieName(): string { $cookieName = trim((string)$this->scopeConfig->getValue( self::XML_PATH_MARKET_COOKIE_NAME, ScopeInterface::SCOPE_STORE )); return $cookieName !== '' ? $cookieName : self::DEFAULT_COOKIE_NAME; } public function getMarketCookieLifetime(): int { $lifetime = (int)$this->scopeConfig->getValue( self::XML_PATH_MARKET_COOKIE_LIFETIME, ScopeInterface::SCOPE_STORE ); return $lifetime > 0 ? $lifetime : self::DEFAULT_COOKIE_LIFETIME; } public function shouldSkipPath(string $path): bool { $path = strtolower(trim($path, '/')); foreach ($this->skipPrefixes as $prefix) { if ($path === $prefix || strpos($path, $prefix . '/') === 0) { return true; } } return false; } }