/**
  * {@inheritdoc}
  */
 public function publish(Identity $identity, Request $request)
 {
     $this->dispatcher->dispatch(PublishEvent::NAME, new PublishEvent($identity, $request));
     $this->driver->publish($identity, $request);
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function publish(Identity $identity, Request $request)
 {
     $this->logger->debug('Publishing "%method%" to service "%service%"', ['service' => $identity->getName(), 'request_method' => $request->getMethod(), 'request_arguments' => $request->getArguments(), 'request_headers' => $request->getHeaders(), 'driver' => get_class($this->driver)]);
     $this->driver->publish($identity, $request);
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function publish(RequestInterface $request)
 {
     $this->driver->publish($this->identity, Request::cast($request));
     return $this;
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function publish(Identity $identity, Request $request)
 {
     $this->asyncDriver->publish($identity, $request);
 }