/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/DependencyInjection/StaticEnvVarLoader.php
26 строк
592 B
Faizan Akram
[DependencyInjection] Reset env vars when resetting the container
02 май 2024, 12:18
02 май 2024, 12:18
d0f4330
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection; class StaticEnvVarLoader implements EnvVarLoaderInterface { private array $envVars; public function __construct(private EnvVarLoaderInterface $envVarLoader) { } public function loadEnvVars(): array { return $this->envVars ??= $this->envVarLoader->loadEnvVars(); } }