diff --git a/src/Api/StatsControllerProvider.php b/src/Api/StatsControllerProvider.php index 44244f4..3352f8b 100644 --- a/src/Api/StatsControllerProvider.php +++ b/src/Api/StatsControllerProvider.php @@ -24,7 +24,7 @@ class StatsControllerProvider implements ControllerProviderInterface { // creates a new controller based on the default route $controllers = $app['controllers_factory']; - $gamesRepo = $this->_eh->getEm()->getRepository(Models\Game::class); + $gameRepo = $this->_eh->getEm()->getRepository(Models\Game::class); $controllers->get('/', function (Application $app) { $stats = [ @@ -38,7 +38,7 @@ class StatsControllerProvider implements ControllerProviderInterface } return $app['serializer']->serialize($stats, 'json'); }); - + return $controllers; } }