/** * @When User mengklik tombol verifikasi */ public function userMengklikTombolVerifikasi() { PaketService::verifikasi($this->paket); }
/** * Approval Proccess * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function approvePaketbyIdAction() { $paket = $this->app['paket.repository']->findById($this->app['request']->get('id')); PaketService::verifikasi($paket); $this->app['orm.em']->persist($paket); $this->app['orm.em']->flush(); $this->app['session']->getFlashBag()->add('message_success', 'Paket telah berhasil di verifikasi dan akan dikirim ke badan selanjutnya'); return $this->app->redirect($this->app['url_generator']->generate('listPaket')); }