Skip to content

Commit

Permalink
Map more providers in Phinject activator
Browse files Browse the repository at this point in the history
  • Loading branch information
aztech-dev committed Feb 13, 2015
1 parent f8d0d92 commit 2c5130b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Phinject/OauthActivator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ class OauthActivator implements Activator, ConfigurationAware
{

private static $oauthMap = [
'facebook' => 'League\OAuth2\Client\Provider\Facebook',
'github' => 'League\OAuth2\Client\Provider\Github',
'bitbucket' => 'League\OAuth1\Client\Server\Bitbucket'
'bitbucket' => 'League\OAuth1\Client\Server\Bitbucket',
'twitter' => 'League\OAuth1\Client\Server\Twitter',
'facebook' => 'League\OAuth2\Client\Provider\Facebook',
'github' => 'League\OAuth2\Client\Provider\Github',
'google' => 'League\OAuth2\Client\Provider\Google'
];

private $configuration;
Expand Down Expand Up @@ -69,4 +71,4 @@ public function createInstance(Container $container, ArrayResolver $serviceConfi

return $callback;
}
}
}

0 comments on commit 2c5130b

Please sign in to comment.