Your IP : 216.73.217.100


Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-translation/App/Config/
Upload File :
Current File : /var/www/www.indacotrentino.com/www/vendor/magento/module-translation/App/Config/ReloadConfig.php

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

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

/**
 * Translation module specific reset state part
 */
class ReloadConfig implements ReloadProcessorInterface
{
    /**
     * @param Translation $translation
     */
    public function __construct(private readonly Translation $translation)
    {
    }

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