Skip to content

Commit

Permalink
Add different names for one provider
Browse files Browse the repository at this point in the history
  • Loading branch information
vlastv committed May 11, 2017
1 parent 2cb963e commit 845ab52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hybridauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getAdapter($name)
{
$config = $this->getProviderConfig($name);

$adapter = sprintf('Hybridauth\\Provider\\%s', $name);
$adapter = $config['adapter'] ?: sprintf('Hybridauth\\Provider\\%s', $name);

return new $adapter($config, $this->httpClient, $this->storage, $this->logger);
}
Expand Down

0 comments on commit 845ab52

Please sign in to comment.