protected static function initAgentsConfig(array $agents, array &$config)
    {
        if (empty($agents)) {
            return;
        }
        $config = empty($config) ? include __DIR__ . '/../config/phpsms.php' : $config;
        $agentsConfig = isset($config['agents']) ? $config['agents'] : [];
        foreach ($agents as $name) {
            $agentConfig = isset($agentsConfig[$name]) ? $agentsConfig[$name] : [];
            self::config($name, $agentConfig);
        }
    }
protected static function initAgentsConfig(array $agents, array &$config)
    {
        if (empty($agents)) {
            return;
        }
        $config = empty($config) ? include __DIR__ . '/../config/phpsms.php' : $config;
        $agentsConfig = isset($config['agents']) ? $config['agents'] : [];
        foreach ($agents as $name) {
            $agentConfig = isset($agentsConfig[$name]) ? $agentsConfig[$name] : [];
            self::config($name, $agentConfig);
        }
    }
protected static function initAgentsConfig ( array $ agents , array & $ config ) { if ( empty ( $ agents ) ) { return ; } $ config = empty ( $ config ) ? include __DIR__ . '/../config/phpsms.php' : $ config ; $ agentsConfig = isset ( $ config [ 'agents' ] ) ? $ config [ 'agents' ] : [ ] ; foreach ( $ agents as $ name ) { $ agentConfig = isset ( $ agentsConfig [ $ name ] ) ? $ agentsConfig [ $ name ] : [ ] ; self :: config ( $ name , $ agentConfig ) ; } }
Initialize the configuration information.

@param array $agents
@param array $config
Initialize the configuration information .