diff --git a/src/Handler/Home.php b/src/Handler/Home.php index a15ba51..4f3a258 100644 --- a/src/Handler/Home.php +++ b/src/Handler/Home.php @@ -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() ]); } }