public function getSampledStatisticAction(ParamFetcher $paramFetcher) { $start = new \DateTime($paramFetcher->get('start')); $end = new \DateTime($paramFetcher->get('end')); return $this->get('partkeepr.statistic.service')->getSampledStatistics($start, $end); }