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