Example #1
0
 public function send(Event $event)
 {
     $handlers = $this->findEventHandlers($event->getModuleId(), $event->getEventType(), $event->getFilter());
     foreach ($handlers as $handler) {
         $this->sendToEventHandler($handler, $event);
     }
     /*
     $handlers = $this->findMailEventHandlers($event->getModuleId(), $event->getEventType(), $event->getFilter());
     foreach ($handlers as $handler)
     	$this->sendToMailEventHandler($handler, $event);
     
     $handlers = $this->findComponentEventHandlers($event->getModuleId(), $event->getEventType(), $event->getFilter());
     foreach ($handlers as $handler)
     	$this->sendToComponentEventHandler($handler, $event);
     */
 }
Example #2
0
 public function send(Event $event)
 {
     $handlers = $this->findEventHandlers($event->getModuleId(), $event->getEventType(), $event->getFilter());
     foreach ($handlers as $handler) {
         $this->sendToEventHandler($handler, $event);
     }
 }