yet another github api refactoring
[pharext/pharext.org] / app / Github / API / Repos / ReposCallback.php
1 <?php
2
3 namespace app\Github\API\Repos;
4
5 use app\Github\API\Callback;
6 use app\Github\API\Hooks\HooksCallback;
7
8 class ReposCallback extends Callback
9 {
10 function __invoke($json, $links = null) {
11 foreach ($json as $repo) {
12 $this->api->listHooks($repo->full_name, new HooksCallback($this->api, $repo));
13 }
14 }
15 }