yet another github api refactoring
[pharext/pharext.org] / app / Controller / Github / Index.php
1 <?php
2
3 namespace app\Controller\Github;
4
5 use app\Controller\Github;
6
7 class Index extends Github
8 {
9 function __invoke(array $args = null) {
10 if ($this->checkToken()) {
11 list($repos, $links) = $this->github->listRepos(
12 $this->app->getRequest()->getQuery("page"),
13 new \app\Github\API\Repos\ReposCallback($this->github)
14 )->send();
15 $this->app->display("github/index", compact("repos", "links"));
16 }
17 }
18 }