From b3fc783098393b6601b185b5fe48c2384ade4cd3 Mon Sep 17 00:00:00 2001 From: Ruben Date: Fri, 31 Mar 2017 12:28:04 +0200 Subject: [PATCH] Stats --- src/Api/StatsControllerProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Api/StatsControllerProvider.php b/src/Api/StatsControllerProvider.php index 3352f8b..9e948b2 100644 --- a/src/Api/StatsControllerProvider.php +++ b/src/Api/StatsControllerProvider.php @@ -24,9 +24,10 @@ class StatsControllerProvider implements ControllerProviderInterface { // creates a new controller based on the default route $controllers = $app['controllers_factory']; - $gameRepo = $this->_eh->getEm()->getRepository(Models\Game::class); $controllers->get('/', function (Application $app) { + $gameRepo = $this->_eh->getEm()->getRepository(Models\Game::class); + $stats = [ 'new_games' => [], 'new_users' => [],