PasswordBrokerManager
class PasswordBrokerManager implements PasswordBrokerFactory mixin PasswordBroker
Constants
| DEFAULT_BROKER_CONTEXT_KEY |
The coroutine context key holding the per-request default broker override. |
Properties
| protected array | $brokers | The array of created "drivers". |
Methods
Attempt to get the broker from the local cache.
Resolve the given broker.
Create a token repository instance based on the given configuration.
Get the password broker configuration.
Resolve the password broker name declared by the given guard.
Get the default password broker name.
Set the default password broker name.
Dynamically call the default driver instance.
Details
at line 32
__construct(Container $app)
Create a new PasswordBroker manager instance.
at line 40
PasswordBroker
broker(string|null $name = null)
Attempt to get the broker from the local cache.
at line 52
protected PasswordBroker
resolve(string $name)
Resolve the given broker.
at line 75
protected TokenRepositoryInterface
createTokenRepository(array $config)
Create a token repository instance based on the given configuration.
at line 107
protected array|null
getConfig(string $name)
Get the password broker configuration.
at line 117
string|null
resolveBrokerNameForGuard(string $guard)
Resolve the password broker name declared by the given guard.
at line 139
string
getDefaultDriver()
Get the default password broker name.
Resolves the coroutine-scoped override first, then the broker declared by the current default guard's "passwords" key.
at line 161
void
setDefaultDriver(string $name)
Set the default password broker name.
Uses coroutine Context so one request's override doesn't affect others.
at line 169
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.