Stats per day

This commit is contained in:
Ruben 2017-03-31 12:37:20 +02:00
parent 5c95018ddf
commit 851849f2a8
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class StatsControllerProvider implements ControllerProviderInterface
$day = date('Y-m-d',strtotime("-$i days"));
$stats['new_games'][$day] = $gameRepo->getCreatedCountOnDate($day);
}
return $app['serializer']->serialize($stats, 'json');
return new CustomJsonResponse($stats, function($data) use ($app){return $app['serializer']->serialize($data, 'json');}, 200);
});
return $controllers;