This commit is contained in:
Ruben 2017-03-31 12:27:39 +02:00
parent 35929ced49
commit 1d88ea42aa
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}