Laravel version update
Laravel version update
This commit is contained in:
@@ -5,9 +5,7 @@ namespace Laravel\Socialite;
|
||||
use InvalidArgumentException;
|
||||
use Illuminate\Support\Manager;
|
||||
use Laravel\Socialite\One\TwitterProvider;
|
||||
use Laravel\Socialite\One\BitbucketProvider;
|
||||
use League\OAuth1\Client\Server\Twitter as TwitterServer;
|
||||
use League\OAuth1\Client\Server\Bitbucket as BitbucketServer;
|
||||
|
||||
class SocialiteManager extends Manager implements Contracts\Factory
|
||||
{
|
||||
@@ -78,6 +76,20 @@ class SocialiteManager extends Manager implements Contracts\Factory
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of the specified driver.
|
||||
*
|
||||
* @return \Laravel\Socialite\Two\AbstractProvider
|
||||
*/
|
||||
protected function createBitbucketDriver()
|
||||
{
|
||||
$config = $this->app['config']['services.bitbucket'];
|
||||
|
||||
return $this->buildProvider(
|
||||
'Laravel\Socialite\Two\BitbucketProvider', $config
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an OAuth 2 provider instance.
|
||||
*
|
||||
@@ -107,20 +119,6 @@ class SocialiteManager extends Manager implements Contracts\Factory
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of the specified driver.
|
||||
*
|
||||
* @return \Laravel\Socialite\One\AbstractProvider
|
||||
*/
|
||||
protected function createBitbucketDriver()
|
||||
{
|
||||
$config = $this->app['config']['services.bitbucket'];
|
||||
|
||||
return new BitbucketProvider(
|
||||
$this->app['request'], new BitbucketServer($this->formatConfig($config))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format the server configuration.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user