protected function extractGApiAuthConfigSettings(array $configData, OutputInterface $output)
    {
        $options = [];

        // Parsing paths
        foreach (array('gApiOAuthSecretFile', 'gApiAccessTokenFile') as $option) {
            if (!isset($configData[self::ROOT_CONFIG_G_API_ACCESS_KEY][$option])) {
                continue;
            }
            if (!is_string($path = $configData[self::ROOT_CONFIG_G_API_ACCESS_KEY][$option])) {
                $this->writeError($output, 'The ['. self::ROOT_CONFIG_G_API_ACCESS_KEY .'] ['.$option.'] option value from the configuration file is not a string');
                continue;
            }

            $options[$option] = $this->getFullPath(dirname($this->findConfigFile($output)), $path);
        }

        return $options;
    }
protected function extractGApiAuthConfigSettings(array $configData, OutputInterface $output)
    {
        $options = [];

        // Parsing paths
        foreach (array('gApiOAuthSecretFile', 'gApiAccessTokenFile') as $option) {
            if (!isset($configData[self::ROOT_CONFIG_G_API_ACCESS_KEY][$option])) {
                continue;
            }
            if (!is_string($path = $configData[self::ROOT_CONFIG_G_API_ACCESS_KEY][$option])) {
                $this->writeError($output, 'The ['. self::ROOT_CONFIG_G_API_ACCESS_KEY .'] ['.$option.'] option value from the configuration file is not a string');
                continue;
            }

            $options[$option] = $this->getFullPath(dirname($this->findConfigFile($output)), $path);
        }

        return $options;
    }
protected function extractGApiAuthConfigSettings ( array $ configData , OutputInterface $ output ) { $ options = [ ] ; // Parsing paths foreach ( array ( 'gApiOAuthSecretFile' , 'gApiAccessTokenFile' ) as $ option ) { if ( ! isset ( $ configData [ self :: ROOT_CONFIG_G_API_ACCESS_KEY ] [ $ option ] ) ) { continue ; } if ( ! is_string ( $ path = $ configData [ self :: ROOT_CONFIG_G_API_ACCESS_KEY ] [ $ option ] ) ) { $ this -> writeError ( $ output , 'The [' . self :: ROOT_CONFIG_G_API_ACCESS_KEY . '] [' . $ option . '] option value from the configuration file is not a string' ) ; continue ; } $ options [ $ option ] = $ this -> getFullPath ( dirname ( $ this -> findConfigFile ( $ output ) ) , $ path ) ; } return $ options ; }
Extract GApiAuth settings from array of config data.

@param array $configData
@param OutputInterface $output
@return array Empty if no settings extracted.
Extract GApiAuth settings from array of config data .