X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI.php;h=0f8b95c4780e22e40f31fbe3ba9cf9dc4b2d544c;hb=7f4e70ea88d180cfa25f25f3846f842c5958ebf4;hp=381533d298e8d6d2f2efe54a48a88488505913c6;hpb=8e9bbe581c9ee4cdd538bf798e5d72780ef82437;p=pharext%2Fpharext.org diff --git a/app/Github/API.php b/app/Github/API.php index 381533d..0f8b95c 100644 --- a/app/Github/API.php +++ b/app/Github/API.php @@ -139,4 +139,9 @@ class API $fetch->setPage($page); return $fetch($callback); } + + function fetchContents($repo, $path, callable $callback) { + $fetch = new Fetch\Contents($this, compact("repo", "path")); + return $fetch($callback); + } }