Beispiel #1
0
 public function onAreaUpdated(AreaEvent $event)
 {
     $area = $event->getArea();
     $this->eventDispatcher->dispatch(MilestoneEvents::ACTIVATION_EVENT, new ActivationEvent($area->getProject(), $area->getEntity(), 'profile.updated', function () use($area) {
         return NewMilestoneStatus::create((bool) $this->canApproveProfile($area));
     }));
 }
Beispiel #2
0
 public function onAreaCreated(AreaEvent $event)
 {
     Milestone::populateEntities($this->conn, $event->getArea()->getEntity(), $event->getArea()->getProject());
 }
Beispiel #3
0
 public function onAreaCreated(AreaEvent $event)
 {
     $courseProgress = new CourseProgress($event->getArea());
     $courseProgress->insert($this->conn);
 }