public static function merge(array $array)
    {
        $result = array();
        foreach ($array as $config) {
            if (is_string($config)) {
                if (!file_exists($config)) {
                    continue;
                }
                $config = require($config);
            }
            if (!is_array($config)) {
                continue;
            }
            $result = self::mergeArray($result, $config);
        }
        return $result;
    }
public static function merge(array $array)
    {
        $result = array();
        foreach ($array as $config) {
            if (is_string($config)) {
                if (!file_exists($config)) {
                    continue;
                }
                $config = require($config);
            }
            if (!is_array($config)) {
                continue;
            }
            $result = self::mergeArray($result, $config);
        }
        return $result;
    }
public static function merge ( array $ array ) { $ result = array ( ) ; foreach ( $ array as $ config ) { if ( is_string ( $ config ) ) { if ( ! file_exists ( $ config ) ) { continue ; } $ config = require ( $ config ) ; } if ( ! is_array ( $ config ) ) { continue ; } $ result = self :: mergeArray ( $ result , $ config ) ; } return $ result ; }
Merges the given configurations into a single configuration array.
@param array $array the configurations to merge.
@return array the merged configuration.
Merges the given configurations into a single configuration array .