Skip to content

Commit

Permalink
Update oauth2-client to 0.4.*
Browse files Browse the repository at this point in the history
  • Loading branch information
ojhaujjwal committed Oct 24, 2014
1 parent c151967 commit 1cf74ec
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"require": {
"php": ">=5.4",
"league/oauth2-client": "~0.3",
"league/oauth2-client": "0.4.*",
"league/oauth1-client": "~1.0",
"zendframework/zend-servicemanager": "~2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Oauth2User.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace HtLeagueOauthClientModule\Model;

use League\OAuth2\Client\Provider\User;
use League\OAuth2\Client\Entity\User;

class Oauth2User implements UserInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Oauth2ClientManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Zend\ServiceManager\AbstractPluginManager;
use Zend\ServiceManager\ConfigInterface;
use League\OAuth2\Client\Provider\IdentityProvider;
use League\OAuth2\Client\Provider\ProviderInterface;

class Oauth2ClientManager extends AbstractPluginManager
{
Expand All @@ -23,7 +23,7 @@ public function __construct(ConfigInterface $config = null)
*/
public function validatePlugin($plugin)
{
if ($plugin instanceof IdentityProvider) {
if ($plugin instanceof ProviderInterface) {
return; // we're okay
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace HtLeagueOauthClientModuleTest\Model;

use League\OAuth2\Client\Provider\User;
use League\OAuth2\Client\Entity\User;
use HtLeagueOauthClientModule\Model\Oauth2User;

class Oauth2UserTest extends \PHPUnit_Framework_TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function testValidatePlugin()
{
$oauth2ClientManager = new Oauth2ClientManager;

$plugin = $this->getMock('League\OAuth2\Client\Provider\IdentityProvider');
$plugin = $this->getMock('League\OAuth2\Client\Provider\ProviderInterface');
$this->assertNull($oauth2ClientManager->validatePlugin($plugin));

$this->setExpectedException('HtLeagueOauthClientModule\Exception\InvalidArgumentException');
Expand Down

0 comments on commit 1cf74ec

Please sign in to comment.