3 namespace app\Github\API\Repos
;
5 use app\Github\API\Callback
;
6 use app\Github\API\Hooks\HooksCallback
;
7 use app\Github\API\Tags\TagsCallback
;
9 class RepoCallback
extends Callback
11 function __invoke($repo, $links = null) {
12 $this->api
->listHooks($repo->full_name
, new HooksCallback($this->api
, $repo));
13 $this->api
->listTags($repo->full_name
, 1, new TagsCallback($this->api
, $repo));
14 $this->api
->listReleases($repo->full_name
, 1, new ReleasesCallback($this->api
, $repo));
15 $this->api
->readContents($repo->full_name
, null, new ContentsCallback($this->api
, $repo));;