3 namespace app\Controller\Github
;
5 use app\Controller\Github
;
6 use app\Github\API\Repos\ReposCallback
;
8 class Index
extends Github
10 function __invoke(array $args = null) {
11 if ($this->checkToken()) {
12 $this->github
->listRepos(
13 $this->app
->getRequest()->getQuery("page")
15 new ReposCallback($this->github
)
16 )->done(function($results) {
17 list(list($repos, $links)) = $results;
18 $this->app
->display("github/index", compact("repos", "links"));
20 $this->github
->drain();