login with account cookie
[pharext/pharext.org] / app / Github / API.php
index 1c9ff7834e772a92cc8fb758bb8701bfaae6bf88..13373269ac86c30d144eff3d78addb2f8f49bcce 100644 (file)
@@ -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;