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()) {
14 $this->github
->listRepos(
15 $this->app
->getRequest()->getQuery("page")
17 new ReposCallback($this->github
)
18 )->done(function($results) {
19 list(list($repos, $links)) = $results;
20 $this->app
->display("github/index", compact("repos", "links"));
23 $this->github
->drain();