Esempio n. 1
0
 /**
  * @Secured(resource="default")
  */
 public function actionDefault()
 {
     $creditAmount = null;
     $u = null;
     try {
         $u = $this->getUser()->getIdentity();
         $s = $this->seasonService->getCurrentSeason();
         $app = $this->applicationService->getUsersApplication($u, $s);
         dd($app);
         $tax = $this->taxService->getTaxSeason($s, $app->getSportGroup());
         $creditAmount = $tax->getCredit();
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataLoad($u->getId(), null, $ex);
     }
     $this->template->creditAmount = $creditAmount;
 }