Example #1
0
 /**
  * @param Event $event
  */
 public function onTestEvent(Event $event)
 {
     if (!$event instanceof TestEvent) {
         throw new \RuntimeException("invalid event");
     }
     $event->setNick("jowy");
 }