* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\Mbo\Api\Config; /** * This class allows retrieving config data that can be overwritten by a .env file. * Otherwise, it returns by default from the Config class. */ class Env { public function get(string $key): string { if (!empty($_ENV[$key])) { return $_ENV[$key]; } return constant(Config::class . '::' . $key); } }