src/Config.php
public static function set($config = null, bool $force = false)
    {
        if ( ! $force && ! empty(self::$config)) {
            return;
        }

        if (is_array($config)) {
            self::$config = $config;
        } else {
            self::$config = require $config ?? self::DEFAULT_CONFIG_PATH;
        }
    }
public static function set($config = null, bool $force = false)
    {
        if ( ! $force && ! empty(self::$config)) {
            return;
        }

        if (is_array($config)) {
            self::$config = $config;
        } else {
            self::$config = require $config ?? self::DEFAULT_CONFIG_PATH;
        }
    }
public static function set ( $ config = null , bool $ force = false ) { if ( ! $ force && ! empty ( self :: $ config ) ) { return ; } if ( is_array ( $ config ) ) { self :: $ config = $ config ; } else { self :: $ config = require $ config ?? self :: DEFAULT_CONFIG_PATH ; } }
Load default application configs.

@param string|array $config
@param bool         $force

@return void
Load default application configs .