/** * @override * @inheritDoc */ public function sendCommand($alias, $command, $params = []) { $req = new Request($this->channel, $alias, new RuntimeCommand($command, $params)); return $req->call(); }
/** * @override * @inheritDoc */ protected function informServer($commandParent, $commandName, $commandParams = []) { $protocol = $this->channel->createProtocol(new RuntimeCommand($commandName, $commandParams)); if ($commandParent !== null) { $protocol->setDestination($commandParent); } $req = new Request($this->channel, $this->receiver, $protocol, ['timeout' => 2, 'retriesLimit' => 10, 'retriesInterval' => 1]); return $req->call(); }