config = ['host' => $this->host, 'port' => $this->port, 'mode' => $this->mode]; } /** * @param array $handler * @return mixed * @throws ReflectionException * @throws ComponentException * @throws NotFindClassException */ public function execute(array $handler): mixed { $rpc = Snowflake::app()->getRpc(); $rpc->addProducer($this->cmd, $handler, $this->config); return parent::execute($handler); } }