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)); })); }
public function onAreaCreated(AreaEvent $event) { Milestone::populateEntities($this->conn, $event->getArea()->getEntity(), $event->getArea()->getProject()); }
public function onAreaCreated(AreaEvent $event) { $courseProgress = new CourseProgress($event->getArea()); $courseProgress->insert($this->conn); }