Vinelab\Minion\Client::register PHP Method

register() public method

Register a RPC.
public register ( string $topic, Closure $callback, array $options = null, boolean $isFunction = false ) : Promise
$topic string
$callback Closure
$options array
$isFunction boolean
return React\Promise\Promise
    public function register($topic, $callback, $options = null, $isFunction = false)
    {
        return $this->getCallee()->register($this->getSession(), $this->prepareTopic($topic), $this->wrapWithProxy($callback, $isFunction), $options);
    }