/** * Year action * * @param int $year * * @return void */ public function yearAction($year = NULL) { $date = DateTimeUtility::normalizeDateTime(1, 1, $year); $this->view->assign('indices', $this->indexRepository->findYear($year)); $this->view->assign('date', $date); }
/** * Year action * * @param int $year * * @return void */ public function yearAction($year = null) { $date = DateTimeUtility::normalizeDateTime(1, 1, $year); $this->slotExtendedAssignMultiple(['indices' => $this->indexRepository->findYear($date->format('Y')), 'date' => $date], __CLASS__, __FUNCTION__); }