This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
Adapter is null when using ZendOAuth with ZendService\Twitter API #25
Open
Description
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 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
Metadata
Metadata
Assignees
Labels
No labels