X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI%2FCallback.php;h=0ba38f4debe577839347381dee879173b24e2907;hb=5664731d8825ce074a5232190f2f8ec61d921782;hp=04b9ed6f584f25a73e285142c3a70052a891ec5c;hpb=36cfa28cf2dcee3422f0231f91c6692eb28e7824;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); + } }