Closed (fixed)
Project:
Social Auth X (Twitter)
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2018 at 16:42 UTC
Updated:
17 Aug 2018 at 07:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hlopes commentedComment #3
gvsoThanks for reporting this and providing a patch. The only change I suggest is to inject the site settings object. Look at other implementers such as Auth Google for guidance on how to do this.
Comment #4
hlopes commentedComment #5
gvsoThanks!
This should be at the same line as the last parameter
siteSettings was not declared before this statement.
Assignment in condition
Coalescing operator is only supported in PHP 7
Remember to change the status to Needs review.
Comment #6
hlopes commentedComment #7
gvsoThanks!
Method
getreturns NULL if setting was not set. So, I guess you can just do$proxyUrl = $this->siteSettings->get('http_client_config')['proxy']['http'];Also, remember to include interdiff.
Comment #8
hlopes commentedComment #10
gvsoThanks!
Comment #12
ariane commentedSorry for re-opening the issue but... As seen in the attached image it throws me an error after the login.
I have put a simple checking line with an isset before getting $this->siteSettings->get('http_client_config')['proxy']['https'] and now it works ok for me.
May it helps.
Comment #13
hlopes commentedCan you try with the patch in #6 ?
Comment #14
ariane commentedI have already the patch installed.