You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
I get an error trying to use ZendOAuth with the ZendService\Twitter API. The ZendOAuth\Client class extends the Zend class and has implemented its own getAdapter method. My fix was to defer to the parent getAdapter method if the adapter is null.
My fix is below:
public function getAdapter() {
$adapter = $this->adapter;
if (! $adapter) {
$adapter = parent::getAdapter();
}
return $adapter;
}
It looks like this has been an issue for 6 or 8 months.
I changed to use the dev-master as suggested and that indeed fixed the issue. It does feel wrong to be using dev-master in production code. I would also love to see a new stable release. It seems like many others are running into the same issue.
I get an error trying to use ZendOAuth with the ZendService\Twitter API. The ZendOAuth\Client class extends the Zend class and has implemented its own getAdapter method. My fix was to defer to the parent getAdapter method if the adapter is null.
My fix is below:
It looks like this has been an issue for 6 or 8 months.
I believe this is the same issue:
zendframework/zendframework#5074
I'm using the following versions:
Zend 2.3.1
ZendService\Twitter 2.1.0
ZendOAuth 2.0.2
Thanks
The text was updated successfully, but these errors were encountered: