User total
This commit is contained in:
parent
48bbd3772f
commit
a57f9528d7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue