diff --git a/composer.json b/composer.json index 4af5fb5..02bb883 100644 --- a/composer.json +++ b/composer.json @@ -7,8 +7,8 @@ "email": "hello@draperstud.io" }], "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 dae9e2c..f6484f1 100644 --- a/src/Provider.php +++ b/src/Provider.php @@ -2,12 +2,17 @@ namespace SocialiteProviders\YouTube; -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 = 'YOUTUBE'; + /** * {@inheritdoc} */