public static function getConfigFiles(array $names, $configDir = null)
    {
        $dirs = ($configDir === null) ? self::getConfigDirs() : [$configDir];

        return self::getRealFiles($dirs, $names);
    }
public static function getConfigFiles(array $names, $configDir = null)
    {
        $dirs = ($configDir === null) ? self::getConfigDirs() : [$configDir];

        return self::getRealFiles($dirs, $names);
    }
public static function getConfigFiles ( array $ names , $ configDir = null ) { $ dirs = ( $ configDir === null ) ? self :: getConfigDirs ( ) : [ $ configDir ] ; return self :: getRealFiles ( $ dirs , $ names ) ; }
Find real config files in config directories.

@param string[] $names     Config file names
@param string   $configDir Optionally use a specific config directory

@return string[]
Find real config files in config directories .