PasswordBrokerManager
class PasswordBrokerManager implements PasswordBrokerFactory mixin PasswordBroker
Constants
| DEFAULT_EXPIRE_MINUTES |
|
| DEFAULT_BROKER_CONTEXT_KEY |
The coroutine context key holding the per-request default broker override. |
Properties
| protected PasswordBroker> | $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 40
__construct(Container $app)
Create a new PasswordBroker manager instance.
at line 48
PasswordBroker
broker(UnitEnum|string|null $name = null)
Attempt to get the broker from the local cache.
at line 66
protected PasswordBroker
resolve(string $name)
Resolve the given broker.
at line 89
protected TokenRepositoryInterface
createTokenRepository(array $config)
Create a token repository instance based on the given configuration.
at line 127
protected array|null
getConfig(string $name)
Get the password broker configuration.
at line 137
string|null
resolveBrokerNameForGuard(UnitEnum|string $guard)
Resolve the password broker name declared by the given guard.
at line 163
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 185
void
setDefaultDriver(UnitEnum|string $name)
Set the default password broker name.
Uses coroutine Context so one request's override doesn't affect others.
at line 202
void
refreshEventDispatcher(Dispatcher $events)
Refresh the event dispatcher on resolved brokers.
Boot or tests only. Replaces the dispatcher on every resolved concrete broker for the worker lifetime; per-request use races across coroutines. Reached by Event::fake() / Event::fakeFor() so cached brokers follow the active dispatcher and its later restoration.
at line 214
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.