public static function config($name = null, $config = null, $override = false)
    {
        $overrideAll = (is_array($name) && is_bool($config)) ? $config : false;

        return Util::operateArray(self::$agentsConfig, $name, $config, [], function ($name, array $config) use ($override) {
            self::modifyConfig($name, $config, $override);
        }, $overrideAll, function (array $origin) {
            foreach (array_keys($origin) as $name) {
                if (self::hasAgent("$name")) {
                    self::getAgent("$name")->config([], true);
                }
            }
        });
    }
public static function config($name = null, $config = null, $override = false)
    {
        $overrideAll = (is_array($name) && is_bool($config)) ? $config : false;

        return Util::operateArray(self::$agentsConfig, $name, $config, [], function ($name, array $config) use ($override) {
            self::modifyConfig($name, $config, $override);
        }, $overrideAll, function (array $origin) {
            foreach (array_keys($origin) as $name) {
                if (self::hasAgent("$name")) {
                    self::getAgent("$name")->config([], true);
                }
            }
        });
    }
public static function config ( $ name = null , $ config = null , $ override = false ) { $ overrideAll = ( is_array ( $ name ) && is_bool ( $ config ) ) ? $ config : false ; return Util :: operateArray ( self :: $ agentsConfig , $ name , $ config , [ ] , function ( $ name , array $ config ) use ( $ override ) { self :: modifyConfig ( $ name , $ config , $ override ) ; } , $ overrideAll , function ( array $ origin ) { foreach ( array_keys ( $ origin ) as $ name ) { if ( self :: hasAgent ( "$name" ) ) { self :: getAgent ( "$name" ) -> config ( [ ] , true ) ; } } } ) ; }
Set or get the configuration information.

@param string|array|null $name
@param array|bool|null   $config
@param bool              $override

@throws PhpSmsException

@return array
Set or get the configuration information .