Exemplo n.º 1
0
 /**
  * Notify handlers about given event
  *
  * @param RequestDescriptor $requestDescriptor Request descriptor
  * @param Event             $event Event object
  *
  * @return void
  * @throws \Exception
  */
 protected function callSocketSubscribers(RequestDescriptor $requestDescriptor, Event $event)
 {
     try {
         $this->eventCaller->setCurrentOperation($requestDescriptor);
         $this->eventCaller->callSocketSubscribers($requestDescriptor, $event);
         $this->eventCaller->clearCurrentOperation();
     } catch (\Exception $e) {
         $this->eventCaller->clearCurrentOperation();
         throw $e;
     }
 }