X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI.php;h=13373269ac86c30d144eff3d78addb2f8f49bcce;hb=9815b77a14832685f90d34f9a348af1cadd63576;hp=1c9ff7834e772a92cc8fb758bb8701bfaae6bf88;hpb=498633479633aaaaea5d848b4f466821f15b205f;p=pharext%2Fpharext.org diff --git a/app/Github/API.php b/app/Github/API.php index 1c9ff78..1337326 100644 --- a/app/Github/API.php +++ b/app/Github/API.php @@ -49,7 +49,8 @@ class API function __construct(Config $config, LoggerInterface $logger, Storage $tokens = null, Storage $cache = null) { $this->logger = $logger; $this->config = $config; - $this->client = new Client; + $this->client = new Client("curl", "github"); + $this->client->configure($config->http->configure); $this->client->attach(new ClientObserver($logger)); $this->tokens = $tokens ?: new Storage\Session; $this->cache = $cache;