PHP Class SocialiteProviders\Manager\SocialiteWasCalled

显示文件 Open project: socialiteproviders/manager Class Usage Examples

Protected Properties

Property Type Description
$app LaravelApp

Public Methods

Method Description
__construct ( Illuminate\Container\Container $app, SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface $configRetriever )
extendSocialite ( string $providerName, string $providerClass, string $oauth1Server = null )

Protected Methods

Method Description
buildOAuth1Provider ( Laravel\Socialite\SocialiteManager $socialite, string $providerClass, $providerName, string $oauth1Server ) : Laravel\Socialite\One\AbstractProvider Build an OAuth 1 provider instance.
buildOAuth2Provider ( Laravel\Socialite\SocialiteManager $socialite, string $providerClass, $providerName ) : Laravel\Socialite\Two\AbstractProvider Build an OAuth 2 provider instance.
buildProvider ( Laravel\Socialite\SocialiteManager $socialite, $providerName, string $providerClass, null | string $oauth1Server ) : Laravel\Socialite\One\AbstractProvider | Laravel\Socialite\Two\AbstractProvider
getConfig ( string $providerClass, string $providerName ) : array

Private Methods

Method Description
classExists ( $providerClass )
classExtends ( string $class, string $baseClass )
isOAuth1 ( string $oauth1Server ) : boolean Check if a server is given, which indicates that OAuth1 is used.

Method Details

__construct() public method

public __construct ( Illuminate\Container\Container $app, SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface $configRetriever )
$app Illuminate\Container\Container
$configRetriever SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface

buildOAuth1Provider() protected method

Build an OAuth 1 provider instance.
protected buildOAuth1Provider ( Laravel\Socialite\SocialiteManager $socialite, string $providerClass, $providerName, string $oauth1Server ) : Laravel\Socialite\One\AbstractProvider
$socialite Laravel\Socialite\SocialiteManager
$providerClass string must extend Laravel\Socialite\One\AbstractProvider
$oauth1Server string must extend League\OAuth1\Client\Server\Server
return Laravel\Socialite\One\AbstractProvider

buildOAuth2Provider() protected method

Build an OAuth 2 provider instance.
protected buildOAuth2Provider ( Laravel\Socialite\SocialiteManager $socialite, string $providerClass, $providerName ) : Laravel\Socialite\Two\AbstractProvider
$socialite Laravel\Socialite\SocialiteManager
$providerClass string must extend Laravel\Socialite\Two\AbstractProvider
return Laravel\Socialite\Two\AbstractProvider

buildProvider() protected method

protected buildProvider ( Laravel\Socialite\SocialiteManager $socialite, $providerName, string $providerClass, null | string $oauth1Server ) : Laravel\Socialite\One\AbstractProvider | Laravel\Socialite\Two\AbstractProvider
$socialite Laravel\Socialite\SocialiteManager
$providerName
$providerClass string
$oauth1Server null | string
return Laravel\Socialite\One\AbstractProvider | Laravel\Socialite\Two\AbstractProvider

extendSocialite() public method

public extendSocialite ( string $providerName, string $providerClass, string $oauth1Server = null )
$providerName string 'meetup'
$providerClass string 'Your\Name\Space\ClassNameProvider' must extend either Laravel\Socialite\Two\AbstractProvider or Laravel\Socialite\One\AbstractProvider
$oauth1Server string 'Your\Name\Space\ClassNameServer' must extend League\OAuth1\Client\Server\Server

getConfig() protected method

protected getConfig ( string $providerClass, string $providerName ) : array
$providerClass string
$providerName string
return array

Property Details

$app protected_oe property

protected LaravelApp $app
return LaravelApp