This commit is contained in:
Ruben 2017-03-31 12:28:04 +02:00
parent 1d88ea42aa
commit b3fc783098

View file

@ -24,9 +24,10 @@ class StatsControllerProvider implements ControllerProviderInterface
{ {
// creates a new controller based on the default route // creates a new controller based on the default route
$controllers = $app['controllers_factory']; $controllers = $app['controllers_factory'];
$gameRepo = $this->_eh->getEm()->getRepository(Models\Game::class);
$controllers->get('/', function (Application $app) { $controllers->get('/', function (Application $app) {
$gameRepo = $this->_eh->getEm()->getRepository(Models\Game::class);
$stats = [ $stats = [
'new_games' => [], 'new_games' => [],
'new_users' => [], 'new_users' => [],