From c3577044d579f37a03bbf592795073ec8452ab8e Mon Sep 17 00:00:00 2001 From: SofWar Date: Wed, 24 Jun 2020 14:20:01 +0300 Subject: [PATCH] Ability to use proxies when requesting (#439) --- Provider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Provider.php b/Provider.php index ae0bb60..15a0c7b 100644 --- a/Provider.php +++ b/Provider.php @@ -205,6 +205,7 @@ public function getDefaultRequestOptions() { return [ RequestOptions::FORM_PARAMS => $this->getParams(), + RequestOptions::PROXY => $this->getConfig('proxy'), ]; } @@ -298,6 +299,6 @@ protected function getTokenUrl() public static function additionalConfigKeys() { - return ['api_key', 'realm', 'https']; + return ['api_key', 'realm', 'https', 'proxy']; } }