SocialiteManager
class SocialiteManager extends Manager implements Factory
Traits
Properties
| protected Repository | $config | The configuration repository instance. |
from Manager |
| protected array | $customCreators | The registered custom driver creators. |
from Manager |
| protected array | $drivers | The array of created "drivers". |
from Manager |
Methods
Get the default driver name.
Get a driver instance.
Forget all of the resolved driver instances.
Dynamically call the default driver instance.
Get a driver instance.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Create an instance of the specified driver.
Build an OAuth 2 provider instance.
Format the server configuration.
Format the callback URL, resolving a relative URI if needed.
Details
in
RebindsCallbacksToSelf at line 18
protected Closure|null
bindCallbackToSelf(Closure $callback)
Bind the provided callback to the class instance.
at line 276
string
getDefaultDriver()
Get the default driver name.
at line 42
mixed
driver(UnitEnum|string|null $driver = null)
Get a driver instance.
Refreshes the request on cached providers so each coroutine gets the current request, not a stale one from first resolution.
in
Manager at line 78
protected mixed
createDriver(string $driver)
Create a new driver instance.
in
Manager at line 99
protected mixed
callCustomCreator(string $driver)
Call a custom driver creator.
in
Manager at line 112
Manager
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
Boot-only. The callback persists in the singleton's customCreators array for the worker lifetime and applies to every subsequent driver resolution.
in
Manager at line 129
array
getDrivers()
Get all of the created "drivers".
at line 263
Manager
setContainer(Container $container)
Set the container instance used by the manager.
Tests only. Swaps the singleton's container and config references; per-request use races across coroutines and breaks every concurrent socialite resolution.
at line 249
Manager
forgetDrivers()
Forget all of the resolved driver instances.
Boot or tests only. Clears the singleton's driver cache; concurrent coroutines may already hold references that next resolution will not share.
in
Manager at line 177
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.
at line 31
mixed
with(string $driver)
Get a driver instance.
at line 56
protected GithubProvider
createGithubDriver()
Create an instance of the specified driver.
at line 69
protected FacebookProvider
createFacebookDriver()
Create an instance of the specified driver.
at line 82
protected GoogleProvider
createGoogleDriver()
Create an instance of the specified driver.
at line 95
protected LinkedInProvider
createLinkedinDriver()
Create an instance of the specified driver.
at line 108
protected LinkedInOpenIdProvider
createLinkedinOpenidDriver()
Create an instance of the specified driver.
at line 121
protected BitbucketProvider
createBitbucketDriver()
Create an instance of the specified driver.
at line 134
protected GitlabProvider
createGitlabDriver()
Create an instance of the specified driver.
at line 147
protected XProvider
createXDriver()
Create an instance of the specified driver.
at line 160
protected TwitchProvider
createTwitchDriver()
Create an instance of the specified driver.
at line 173
protected SlackProvider
createSlackDriver()
Create an instance of the specified driver.
at line 186
protected SlackOpenIdProvider
createSlackOpenidDriver()
Create an instance of the specified driver.
at line 199
mixed
buildOAuth2Provider(string $provider, array|null $config)
Build an OAuth 2 provider instance.
at line 221
array
formatConfig(array $config)
Format the server configuration.
at line 233
protected string
formatRedirectUrl(array $config)
Format the callback URL, resolving a relative URI if needed.