DotenvVariables::getInternal( string $name )

Get an environment variable.


Description

We do this by querying our adapters sequentially.


Parameters

$name

(string) (Required)


Return

(string|null)


Source

File: vendor/vlucas/phpdotenv/src/Environment/DotenvVariables.php

    protected function getInternal($name)
    {
        foreach ($this->adapters as $adapter) {
            $result = $adapter->get($name);
            if ($result->isDefined()) {
                return $result->get();
            }
        }
    }