/**
  * {@inheritdoc}
  */
 public function publish(LocationInterface $location, Request $request)
 {
     $this->dispatcher->dispatch(PublishEvent::NAME, new PublishEvent($location, $request));
     $this->driver->publish($location, $request);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function publish(Request $request)
 {
     $this->driver->publish($this->location, $request);
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function publish(LocationInterface $location, Request $request)
 {
     $this->asyncDriver->publish($location, $request);
 }