Property | Type | Description | |
---|---|---|---|
$app | LaravelApp |
Method | Description | |
---|---|---|
__construct ( Illuminate\Container\Container $app, SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface $configRetriever ) | ||
extendSocialite ( string $providerName, string $providerClass, string $oauth1Server = null ) |
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 |
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. |
public __construct ( Illuminate\Container\Container $app, SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface $configRetriever ) | ||
$app | Illuminate\Container\Container | |
$configRetriever | SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface |
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 |
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 |
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 |
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 |