private static function includeConfigFile(array &$config, $config_file, File $base_dir, ConfigReader $reader)
    {
        // try relative path
        $file = new File($config_file, $base_dir);
        
        if ( $file->exists() ){
            $included = self::loadConfigFileByFormat( $file, $reader );
            $config = array_merge_recursive($config, $included);
            return;
        }
        
        // try full path
        $file = new File($config_file);
        
        if ( $file->exists() ){
            $included = self::loadConfigFileByFormat( $file, $reader );
            $config = array_merge_recursive($config, $included);
            return;
        }
        
        throw new IncludeConfigFileNotFoundException($config_file);
    }
private static function includeConfigFile(array &$config, $config_file, File $base_dir, ConfigReader $reader)
    {
        // try relative path
        $file = new File($config_file, $base_dir);
        
        if ( $file->exists() ){
            $included = self::loadConfigFileByFormat( $file, $reader );
            $config = array_merge_recursive($config, $included);
            return;
        }
        
        // try full path
        $file = new File($config_file);
        
        if ( $file->exists() ){
            $included = self::loadConfigFileByFormat( $file, $reader );
            $config = array_merge_recursive($config, $included);
            return;
        }
        
        throw new IncludeConfigFileNotFoundException($config_file);
    }
private static function includeConfigFile ( array & $ config , $ config_file , File $ base_dir , ConfigReader $ reader ) { // try relative path $ file = new File ( $ config_file , $ base_dir ) ; if ( $ file -> exists ( ) ) { $ included = self :: loadConfigFileByFormat ( $ file , $ reader ) ; $ config = array_merge_recursive ( $ config , $ included ) ; return ; } // try full path $ file = new File ( $ config_file ) ; if ( $ file -> exists ( ) ) { $ included = self :: loadConfigFileByFormat ( $ file , $ reader ) ; $ config = array_merge_recursive ( $ config , $ included ) ; return ; } throw new IncludeConfigFileNotFoundException ( $ config_file ) ; }
Include other config file

@param array $config
@param string $config_file
@param File $base_dir
@param ConfigReader $reader

@throws IncludeConfigFileNotFoundException
@throws UnsupportedConfigFileFormatException
Include other config file