config = ['port' => $port, 'mode' => $mode, 'timeout' => $timeout]; } /** * @param mixed $class * @param mixed $method * @return bool * @throws Exception */ public function execute(mixed $class, mixed $method = ''): bool { $rpc = Kiri::app()->getRpc(); $rpc->addProducer($this->cmd, [$class, $method], $this->config); return true; } }