src/Guzzle/Service/AbstractConfigLoader.php
protected function mergeIncludes(&$config, $basePath = null)
    {
        if (!empty($config['includes'])) {
            foreach ($config['includes'] as &$path) {
                // Account for relative paths
                if ($path[0] != DIRECTORY_SEPARATOR && !isset($this->aliases[$path]) && $basePath) {
                    $path = "{$basePath}/{$path}";
                }
                // Don't load the same files more than once
                if (!isset($this->loadedFiles[$path])) {
                    $this->loadedFiles[$path] = true;
                    $config = $this->mergeData($this->loadFile($path), $config);
                }
            }
        }
    }
protected function mergeIncludes(&$config, $basePath = null)
    {
        if (!empty($config['includes'])) {
            foreach ($config['includes'] as &$path) {
                // Account for relative paths
                if ($path[0] != DIRECTORY_SEPARATOR && !isset($this->aliases[$path]) && $basePath) {
                    $path = "{$basePath}/{$path}";
                }
                // Don't load the same files more than once
                if (!isset($this->loadedFiles[$path])) {
                    $this->loadedFiles[$path] = true;
                    $config = $this->mergeData($this->loadFile($path), $config);
                }
            }
        }
    }
protected function mergeIncludes ( & $ config , $ basePath = null ) { if ( ! empty ( $ config [ 'includes' ] ) ) { foreach ( $ config [ 'includes' ] as & $ path ) { // Account for relative paths if ( $ path [ 0 ] != DIRECTORY_SEPARATOR && ! isset ( $ this -> aliases [ $ path ] ) && $ basePath ) { $ path = "{$basePath}/{$path}" ; } // Don't load the same files more than once if ( ! isset ( $ this -> loadedFiles [ $ path ] ) ) { $ this -> loadedFiles [ $ path ] = true ; $ config = $ this -> mergeData ( $ this -> loadFile ( $ path ) , $ config ) ; } } } }
Merges in all include files

@param array  $config   Config data that contains includes
@param string $basePath Base path to use when a relative path is encountered

@return array Returns the merged and included data
Merges in all include files