From 5a11f3f79d775fb2776464092656b8900da048dc Mon Sep 17 00:00:00 2001 From: DraperStudio Date: Wed, 30 Mar 2016 09:12:26 +0200 Subject: [PATCH] Upgrade to Manager 2.0 --- composer.json | 4 ++-- src/Provider.php | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 868bc20..0f6b173 100755 --- a/composer.json +++ b/composer.json @@ -7,8 +7,8 @@ "email": "techxu@gmail.com" }], "require": { - "php": ">=5.5.0", - "socialiteproviders/manager": "~1.0" + "php": "^5.6 || ^7.0", + "socialiteproviders/manager": "~2.0" }, "autoload": { "psr-4": { diff --git a/src/Provider.php b/src/Provider.php index c25884a..32fefe8 100755 --- a/src/Provider.php +++ b/src/Provider.php @@ -2,12 +2,17 @@ namespace SocialiteProviders\Weixin; -use Laravel\Socialite\Two\AbstractProvider; use Laravel\Socialite\Two\ProviderInterface; -use Laravel\Socialite\Two\User; +use SocialiteProviders\Manager\OAuth2\AbstractProvider; +use SocialiteProviders\Manager\OAuth2\User; class Provider extends AbstractProvider implements ProviderInterface { + /** + * Unique Provider Identifier. + */ + const IDENTIFIER = 'WEIXIN'; + /** * {@inheritdoc}. */