Your IP : 216.73.217.13


Current Path : /home/rtorresani/www/vendor/magento/module-cookie/Block/DataProviders/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-cookie/Block/DataProviders/SessionConfig.php

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

namespace Magento\Cookie\Block\DataProviders;

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()
    {
        return $this->sessionConfig->getCookieSecure();
    }
}