public static function getConfig(array $appConfig = []) : array
  {
    $configs = DEPConfig::$appdir . 'config' . DIRECTORY_SEPARATOR . '*.php';

    foreach (\glob($configs) as $config) {
      $service = require $config;

      if (is_array($service)) {
        $path = basename($config);
        $name = \substr($path, 0, strlen($path) - 4);
        $appConfig = array_merge($appConfig, [$name => $service]);
      }
    }

    return $appConfig;
  }
public static function getConfig(array $appConfig = []) : array
  {
    $configs = DEPConfig::$appdir . 'config' . DIRECTORY_SEPARATOR . '*.php';

    foreach (\glob($configs) as $config) {
      $service = require $config;

      if (is_array($service)) {
        $path = basename($config);
        $name = \substr($path, 0, strlen($path) - 4);
        $appConfig = array_merge($appConfig, [$name => $service]);
      }
    }

    return $appConfig;
  }
public static function getConfig ( array $ appConfig = [ ] ) : array { $ configs = DEPConfig :: $ appdir . 'config' . DIRECTORY_SEPARATOR . '*.php' ; foreach ( \ glob ( $ configs ) as $ config ) { $ service = require $ config ; if ( is_array ( $ service ) ) { $ path = basename ( $ config ) ; $ name = \ substr ( $ path , 0 , strlen ( $ path ) - 4 ) ; $ appConfig = array_merge ( $ appConfig , [ $ name => $ service ] ) ; } } return $ appConfig ; }
Get config files

@param array $appConfig
@return array $appConfig
Get config files