コード例 #1
0
 public function disconnect()
 {
     foreach (array_keys($this->eventService->getEvents()) as $eventName) {
         $this->connection->unsubscribe($eventName);
     }
     parent::disconnect();
 }
コード例 #2
0
 public function addEvent($eventName, $eventDispatchClass)
 {
     if (!$this->isConnected()) {
         $this->connect();
     }
     parent::addEvent($eventName . ',', $eventDispatchClass);
 }