public function disconnect() { foreach (array_keys($this->eventService->getEvents()) as $eventName) { $this->connection->unsubscribe($eventName); } parent::disconnect(); }
public function addEvent($eventName, $eventDispatchClass) { if (!$this->isConnected()) { $this->connect(); } parent::addEvent($eventName . ',', $eventDispatchClass); }