/** * count events and group them by an according timespan */ public function countEventsAction() { $start = $this->getStartDate(); $end = $this->getEndDate(); $this->view->assign('start', $start); $this->view->assign('end', $end); $this->view->assign('data', $this->eventIndexRepository->countAllWithSettings(array_merge($this->actionSettings, array('startDate' => $start->getTimestamp(), 'endDate' => $end->getTimestamp())))); }