Your IP : 216.73.216.81


Current Path : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/module-config/App/Config/
Upload File :
Current File : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/module-config/App/Config/ReloadConfig.php

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

use Magento\Config\App\Config\Type\System;
use Magento\Framework\App\State\ReloadProcessorInterface;

/**
 * Config module specific reset state
 */
class ReloadConfig implements ReloadProcessorInterface
{
    /**
     * @param System $system
     */
    public function __construct(private readonly System $system)
    {
    }

    /**
     * Tells the system state to reload itself.
     *
     * @return void
     */
    public function reloadState(): void
    {
        $this->system->get();
    }
}