This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Loader::processEntries( string[] $entries )

Process the environment variable entries.


Description

We’ll fill out any nested variables, and acually set the variable using the underlying environment variables instance.


Parameters

$entries

(string[]) (Required)


Return

(Dotenvarray<string|Dotenvnull>)


Source

File: vendor/vlucas/phpdotenv/src/Loader.php

    private function processEntries(array $entries)
    {
        $vars = [];

        foreach ($entries as $entry) {
            list($name, $value) = Parser::parse($entry);
            $vars[$name] = $this->resolveNestedVariables($value);
            $this->setEnvironmentVariable($name, $vars[$name]);
        }

        return $vars;
    }