Toplan\PhpSms\Sms::modifyScheme PHP Method

modifyScheme() protected static method

Modify the dispatch scheme of agent by name.
protected static modifyScheme ( $key, $value )
$key
$value
    protected static function modifyScheme($key, $value)
    {
        if (self::taskInitialized()) {
            throw new PhpSmsException("Modify the dispatch scheme failed for [{$key}] agent, because the task system has already started.");
        }
        self::validateAgentName($key);
        self::$scheme[$key] = $value;
    }