event_id = $event_id; } /** * @param ISummitRepository $repository * @param ITransactionService $tx_service * @throws \Exception */ public function handle( ISummitEventRepository $repository, ITransactionService $tx_service ) { Log::debug(sprintf("SynchPresentationActions::handle event id %s", $this->event_id)); $tx_service->transaction(function() use($repository){ $event = $repository->getById($this->event_id); if(is_null($event)) throw new EntityNotFoundException(sprintf("Event %s ", $this->event_id)); if(!$event instanceof Presentation){ return; } $event->getSummit()->synchAllPresentationActions(); }); } }