refactored 80%
[pharext/pharext.org] / app / Github / API / Hooks / HooksCallback.php
index f5208444dd5cebe20af2a7067757945edde1e21a..76b1b6e6451ee4696edc79d5830c2fe50a3d61f3 100644 (file)
@@ -14,7 +14,7 @@ class HooksCallback extends Callback
                $this->repo = $repo;
        }
        
-       function __invoke($json, $links = null) {
-               $this->repo->hooks = $json;
+       function exec($json, $links = null) {
+               return $this->repo->hooks = $json;
        }
 }