Skip to content

Commit

Permalink
Upgrade to Manager 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DraperStudio committed Mar 30, 2016
1 parent 88b6961 commit e6d10a2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 86 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 8 additions & 2 deletions src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

namespace SocialiteProviders\Twitter;

use Laravel\Socialite\One\User;
use SocialiteProviders\Manager\OAuth1\User;
use SocialiteProviders\Manager\OAuth1\AbstractProvider;

class Provider extends TwitterAbstractProvider
class Provider extends AbstractProvider
{
/**
* Unique Provider Identifier.
*/
const IDENTIFIER = 'TWITTER';

/**
* {@inheritdoc}
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SocialiteProviders\Twitter;

use Laravel\Socialite\One\User;
use League\OAuth1\Client\Credentials\TokenCredentials;
use League\OAuth1\Client\Server\Server as BaseServer;
use SocialiteProviders\Manager\OAuth1\Server as BaseServer;
use SocialiteProviders\Manager\OAuth1\User;

class Server extends BaseServer
{
Expand Down
80 changes: 0 additions & 80 deletions src/TwitterAbstractProvider.php

This file was deleted.

0 comments on commit e6d10a2

Please sign in to comment.