repo checks
[pharext/pharext.org] / app / Github / API.php
index 381533d298e8d6d2f2efe54a48a88488505913c6..0f8b95c4780e22e40f31fbe3ba9cf9dc4b2d544c 100644 (file)
@@ -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);
+       }
 }