Platformsh\Cli\CliConfig::applyEnvironmentOverrides PHP Method

applyEnvironmentOverrides() protected method

    protected function applyEnvironmentOverrides()
    {
        $overrideMap = ['TOKEN' => 'api.token', 'API_TOKEN' => 'api.access_token', 'COPY_ON_WINDOWS' => 'local.copy_on_windows', 'DEBUG' => 'api.debug', 'DISABLE_CACHE' => 'api.disable_cache', 'DRUSH' => 'local.drush_executable', 'SESSION_ID' => 'api.session_id', 'SKIP_SSL' => 'api.skip_ssl', 'ACCOUNTS_API' => 'api.accounts_api_url'];
        foreach ($overrideMap as $var => $key) {
            $value = $this->getEnv($var);
            if ($value !== false) {
                Util::setNestedArrayValue(self::$config, explode('.', $key), $value, true);
            }
        }
    }