Your IP : 216.73.217.13


Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-theme/ViewModel/Block/
Upload File :
Current File : /var/www/www.indacotrentino.com/www/vendor/magento/module-theme/ViewModel/Block/SessionConfig.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Theme\ViewModel\Block;

use Magento\Framework\Session\Config\ConfigInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;

/**
 * Provide cookie configuration
 */
class SessionConfig implements ArgumentInterface
{
    /**
     * Session config
     *
     * @var ConfigInterface
     */
    private $sessionConfig;

    /**
     * Constructor
     *
     * @param ConfigInterface $sessionConfig
     */
    public function __construct(
        ConfigInterface $sessionConfig
    ) {
        $this->sessionConfig = $sessionConfig;
    }
    /**
     * Get session.cookie_secure
     *
     * @return bool
     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
     */
    public function getCookieSecure(): bool
    {
        return $this->sessionConfig->getCookieSecure();
    }
}