コード例 #1
0
 public function onEventCreate(\Symfony\Component\EventDispatcher\Event $event)
 {
     $koalamonEvent = $event->getEvent();
     if ($event->hasLastEvent()) {
         if ($this->isNotifiable($koalamonEvent, $event->getLastEvent())) {
             $this->notify($koalamonEvent);
         }
     } else {
         if ($this->isNotifiable($koalamonEvent)) {
             $this->notify($koalamonEvent);
         }
     }
 }