Permalink
Browse files

The ->getAdapter() method does not set the adapter if passed in confi…

…g options

`->getAdapter()` method of parent class `ZendOAuth\Client` is:

    public function getAdapter()
    {
        if (! $this->adapter) {
            $this->setAdapter($this->config['adapter']);
        }

        return $this->adapter;
    }

but here was:

    public function getAdapter()
    {
        return $this->adapter;
    }

replaced with:

    public function getAdapter()
    {
        return parent::getAdapter();
    }
  • Loading branch information...
lorenzoferrarajr committed Nov 27, 2013
1 parent 0d06877 commit 556bb13fc4aeb0d8ccc65401b3bc73cba7a457a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/ZendOAuth/Client.php
@@ -75,7 +75,7 @@ public function __construct($oauthOptions, $uri = null, $config = null)
*/
public function getAdapter()
{
return $this->adapter;
return parent::getAdapter();
}
/**

0 comments on commit 556bb13

Please sign in to comment.