src/ServiceRuntime/Internal/XmlRoleEnvironmentDataDeserializer.php
private function _translateConfigurationSettings($environmentInfo)
    {
        $configurationSettings = [];

        $settingsInfo = Utilities::tryGetKeysChainValue(
            $environmentInfo,
            'CurrentInstance',
            'ConfigurationSettings',
            'ConfigurationSetting'
        );

        if (!is_null($settingsInfo)) {
            if (array_key_exists('@attributes', $settingsInfo)) {
                $settingsInfo = [0 => $settingsInfo];
            }

            foreach ($settingsInfo as $settingInfo) {
                $configurationSettings
                    [$settingInfo['@attributes']['name']] = $settingInfo
                        ['@attributes']['value'];
            }
        }

        return $configurationSettings;
    }
private function _translateConfigurationSettings($environmentInfo)
    {
        $configurationSettings = [];

        $settingsInfo = Utilities::tryGetKeysChainValue(
            $environmentInfo,
            'CurrentInstance',
            'ConfigurationSettings',
            'ConfigurationSetting'
        );

        if (!is_null($settingsInfo)) {
            if (array_key_exists('@attributes', $settingsInfo)) {
                $settingsInfo = [0 => $settingsInfo];
            }

            foreach ($settingsInfo as $settingInfo) {
                $configurationSettings
                    [$settingInfo['@attributes']['name']] = $settingInfo
                        ['@attributes']['value'];
            }
        }

        return $configurationSettings;
    }
private function _translateConfigurationSettings ( $ environmentInfo ) { $ configurationSettings = [ ] ; $ settingsInfo = Utilities :: tryGetKeysChainValue ( $ environmentInfo , 'CurrentInstance' , 'ConfigurationSettings' , 'ConfigurationSetting' ) ; if ( ! is_null ( $ settingsInfo ) ) { if ( array_key_exists ( '@attributes' , $ settingsInfo ) ) { $ settingsInfo = [ 0 => $ settingsInfo ] ; } foreach ( $ settingsInfo as $ settingInfo ) { $ configurationSettings [ $ settingInfo [ '@attributes' ] [ 'name' ] ] = $ settingInfo [ '@attributes' ] [ 'value' ] ; } } return $ configurationSettings ; }
Translates the configuration settings.

@param string $environmentInfo The role environment info

@return array
Translates the configuration settings .