User total

This commit is contained in:
Ruben 2017-03-31 12:44:05 +02:00
parent 48bbd3772f
commit a57f9528d7
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class StatsControllerProvider implements ControllerProviderInterface
}
$stats['games']['total'] = $gameRepo->getCount();
$stats['users']['total'] = $userRepo->getCount();
return new CustomJsonResponse($stats, function($data) use ($app){return $app['serializer']->serialize($data, 'json');}, 200);
});