\Overtrue\SocialiteSocialiteManager

Class SocialiteManager.

Summary

Methods
Properties
Constants
__construct()
config()
driver()
setRequest()
getRequest()
extend()
getDrivers()
buildProvider()
formatConfig()
No public properties found
No constants found
createDriver()
callCustomCreator()
createDefaultRequest()
$config
$request
$customCreators
$initialDrivers
$drivers
N/A
No private methods found
No private properties found
N/A

Properties

$customCreators

$customCreators : array

The registered custom driver creators.

Type

array

$initialDrivers

$initialDrivers : array

The initial drivers.

Type

array

Methods

__construct()

__construct(array  $config, \Symfony\Component\HttpFoundation\Request|null  $request = null) 

SocialiteManager constructor.

Parameters

array $config
\Symfony\Component\HttpFoundation\Request|null $request

config()

config(\Overtrue\Socialite\Config  $config) : $this

Set config instance.

Parameters

\Overtrue\Socialite\Config $config

Returns

$this

extend()

extend(string  $driver, \Closure  $callback) : $this

Register a custom driver creator Closure.

Parameters

string $driver
\Closure $callback

Returns

$this

buildProvider()

buildProvider(string  $provider, array  $config) : \Overtrue\Socialite\ProviderInterface

Build an OAuth 2 provider instance.

Parameters

string $provider
array $config

Returns

\Overtrue\Socialite\ProviderInterface

formatConfig()

formatConfig(array  $config) : array

Format the server configuration.

Parameters

array $config

Returns

array

createDriver()

createDriver(string  $driver) : \Overtrue\Socialite\ProviderInterface

Create a new driver instance.

Parameters

string $driver

Throws

\InvalidArgumentException

Returns

\Overtrue\Socialite\ProviderInterface

callCustomCreator()

callCustomCreator(string  $driver) : \Overtrue\Socialite\ProviderInterface

Call a custom driver creator.

Parameters

string $driver

Returns

\Overtrue\Socialite\ProviderInterface