src/Service/ConsulEnvManager.php
public function getEnvVarsFromConsul(array $mappings)
    {
        foreach ($mappings as $environmentKey => $consulPath) {
            $keyExists = $this->keyIsDefined($environmentKey);
            if ($keyExists && !$this->overwriteEvenIfDefined) {
                continue;
            }

            $consulValue = $this->getKeyValueFromConsul($consulPath);
            $this->saveKeyValueInEnvironmentVars($environmentKey, $consulValue);
        }
    }
public function getEnvVarsFromConsul(array $mappings)
    {
        foreach ($mappings as $environmentKey => $consulPath) {
            $keyExists = $this->keyIsDefined($environmentKey);
            if ($keyExists && !$this->overwriteEvenIfDefined) {
                continue;
            }

            $consulValue = $this->getKeyValueFromConsul($consulPath);
            $this->saveKeyValueInEnvironmentVars($environmentKey, $consulValue);
        }
    }
public function getEnvVarsFromConsul ( array $ mappings ) { foreach ( $ mappings as $ environmentKey => $ consulPath ) { $ keyExists = $ this -> keyIsDefined ( $ environmentKey ) ; if ( $ keyExists && ! $ this -> overwriteEvenIfDefined ) { continue ; } $ consulValue = $ this -> getKeyValueFromConsul ( $ consulPath ) ; $ this -> saveKeyValueInEnvironmentVars ( $ environmentKey , $ consulValue ) ; } }
Add missing environment variables from Consul.

@param array $mappings
Add missing environment variables from Consul .