Example #1
0
 public function revoke(EdkRoute $item)
 {
     $this->transaction->requestTransaction();
     try {
         if (!$item->revoke($this->conn)) {
             throw new ModelException('Cannot revoke this this route.');
         }
         $this->eventDispatcher->dispatch(MilestoneEvents::ACTIVATION_EVENT, new ActivationEvent($item->getArea()->getProject(), $item->getArea()->getEntity(), 'route.approved', $this->getActivationFunc($item)));
     } catch (Exception $ex) {
         $this->transaction->requestRollback();
         throw $ex;
     }
 }