PHP Class Overtrue\Socialite\SocialiteManager

Inheritance: implements Overtrue\Socialite\FactoryInterface
Afficher le fichier Open project: overtrue/socialite Class Usage Examples

Protected Properties

Свойство Type Description
$config Config The configuration.
$customCreators array The registered custom driver creators.
$drivers array The array of created "drivers".
$initialDrivers array The initial drivers.
$request Symfony\Component\HttpFoundation\Request The request instance.

Méthodes publiques

Méthode Description
__call ( string $method, array $parameters ) : mixed Dynamically call the default driver instance.
__construct ( array $config, Request $request = null ) SocialiteManager constructor.
buildProvider ( string $provider, array $config ) : Overtrue\Socialite\AbstractProvider Build an OAuth 2 provider instance.
config ( Config $config ) Set config instance.
driver ( string $driver = null ) : mixed Get a driver instance.
extend ( string $driver, Closure $callback ) Register a custom driver creator Closure.
formatConfig ( array $config ) : array Format the server configuration.
getDefaultDriver ( ) : string Get the default driver name.
getDrivers ( ) : array Get all of the created "drivers".
with ( string $driver ) : mixed Get a driver instance.

Méthodes protégées

Méthode Description
callCustomCreator ( string $driver ) : mixed Call a custom driver creator.
createDefaultRequest ( ) : Request Create default request instance.
createDriver ( string $driver ) : mixed Create a new driver instance.

Method Details

__call() public méthode

Dynamically call the default driver instance.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
Résultat mixed

__construct() public méthode

SocialiteManager constructor.
public __construct ( array $config, Request $request = null )
$config array
$request Symfony\Component\HttpFoundation\Request

buildProvider() public méthode

Build an OAuth 2 provider instance.
public buildProvider ( string $provider, array $config ) : Overtrue\Socialite\AbstractProvider
$provider string
$config array
Résultat Overtrue\Socialite\AbstractProvider

callCustomCreator() protected méthode

Call a custom driver creator.
protected callCustomCreator ( string $driver ) : mixed
$driver string
Résultat mixed

config() public méthode

Set config instance.
public config ( Config $config )
$config Config

createDefaultRequest() protected méthode

Create default request instance.
protected createDefaultRequest ( ) : Request
Résultat Symfony\Component\HttpFoundation\Request

createDriver() protected méthode

Create a new driver instance.
protected createDriver ( string $driver ) : mixed
$driver string
Résultat mixed

driver() public méthode

Get a driver instance.
public driver ( string $driver = null ) : mixed
$driver string
Résultat mixed

extend() public méthode

Register a custom driver creator Closure.
public extend ( string $driver, Closure $callback )
$driver string
$callback Closure

formatConfig() public méthode

Format the server configuration.
public formatConfig ( array $config ) : array
$config array
Résultat array

getDefaultDriver() public méthode

Get the default driver name.
public getDefaultDriver ( ) : string
Résultat string

getDrivers() public méthode

Get all of the created "drivers".
public getDrivers ( ) : array
Résultat array

with() public méthode

Get a driver instance.
public with ( string $driver ) : mixed
$driver string
Résultat mixed

Property Details

$config protected_oe property

The configuration.
protected Config,Overtrue\Socialite $config
Résultat Config

$customCreators protected_oe property

The registered custom driver creators.
protected array $customCreators
Résultat array

$drivers protected_oe property

The array of created "drivers".
protected array $drivers
Résultat array

$initialDrivers protected_oe property

The initial drivers.
protected array $initialDrivers
Résultat array

$request protected_oe property

The request instance.
protected Request,Symfony\Component\HttpFoundation $request
Résultat Symfony\Component\HttpFoundation\Request