User total

This commit is contained in:
Ruben 2017-03-31 12:44:05 +02:00
parent 48bbd3772f
commit a57f9528d7

View file

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