X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI%2FCallback.php;h=0ba38f4debe577839347381dee879173b24e2907;hb=2198c781a021d85ee845f2f4b2f5c322f73e6bd5;hp=04b9ed6f584f25a73e285142c3a70052a891ec5c;hpb=c05a8f703d5a097355b5813154c264c87e3f71fe;p=pharext%2Fpharext.org diff --git a/app/Github/API/Callback.php b/app/Github/API/Callback.php index 04b9ed6..0ba38f4 100644 --- a/app/Github/API/Callback.php +++ b/app/Github/API/Callback.php @@ -8,9 +8,13 @@ abstract class Callback { protected $api; - abstract function __invoke($json, $links = null); + abstract protected function exec($json, $links = null); function __construct(API $api) { $this->api = $api; } + + function __invoke($result) { + return $this->exec(...$result); + } }