add server count

This commit is contained in:
Corne Oppelaar 2016-06-25 17:13:58 +02:00
parent 8b820d242d
commit 98d639b990
No known key found for this signature in database
GPG key ID: FF32F66315D2E8E5

View file

@ -2,6 +2,7 @@
namespace Eater\Glim\Handler;
use Eater\Glim\Model\ServerQuery;
use Eater\Glim\Service\GitHub;
class Home extends Session
@ -28,7 +29,8 @@ class Home extends Session
return $this->render("home.html.twig", [
'author' => $author,
'contributors' => $github->getContributors(),
'githubRepo' => $repo
'githubRepo' => $repo,
'serverCount' => ServerQuery::create()->findByStatus('signed')->count()
]);
}
}