projects
/
pharext
/
pharext.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
repo checks
[pharext/pharext.org]
/
app
/
Github
/
API.php
diff --git
a/app/Github/API.php
b/app/Github/API.php
index 381533d298e8d6d2f2efe54a48a88488505913c6..0f8b95c4780e22e40f31fbe3ba9cf9dc4b2d544c 100644
(file)
--- 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);
+ }
}