public function publishReply(Message $msg, MappableApi $api) { if (!$msg->getReplyTo()) { return null; } $queueName = $msg->getReplyTo(); $worker = new WorkerPublisher($this->connection, $queueName); return $worker->publish($api, ['expiration' => ['T', strtotime('+5 minutes')]], $msg->getId()); }