X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FController%2FGithub%2FIndex.php;h=c0838b7912af788da3fe83c9a276804b617d0818;hb=eb76e9bb9a39fe2725301f6cf6fc3cf29bbc4e00;hp=935f249e3fa6e0238f8881c2d31d2bae694622be;hpb=beaa328995cb2a32871259978d8da4acb3dc7715;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/Index.php b/app/Controller/Github/Index.php index 935f249..c0838b7 100644 --- a/app/Controller/Github/Index.php +++ b/app/Controller/Github/Index.php @@ -8,7 +8,7 @@ class Index extends Github { function __invoke(array $args = null) { if ($this->checkToken()) { - $this->github->fetchRepos( + $this->github->listRepos( $this->app->getRequest()->getQuery("page"), [$this, "reposCallback"] )->send(); @@ -20,7 +20,7 @@ class Index extends Github $this->app->getView()->addData(compact("repos", "links")); foreach ($repos as $repo) { - $this->github->fetchHooks($repo->full_name, function($hooks) use($repo) { + $this->github->listHooks($repo->full_name, function($hooks) use($repo) { $repo->hooks = $hooks; }); }