Files
magento2/app/code/Magento/Config/Console/Command/LocaleEmulatorInterface.php

24 lines
514 B
PHP

<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Config\Console\Command;
/**
* Locale emulator for config set and show
*/
interface LocaleEmulatorInterface
{
/**
* Emulates given $locale during execution of $callback
*
* @param callable $callback
* @param string|null $locale
* @return mixed
*/
public function emulate(callable $callback, ?string $locale = null): mixed;
}