PasswordBrokerManager
in package
implements
PasswordBrokerFactory
Tags
Interfaces, Classes and Traits
Table of Contents
- $app : Application
- The application instance.
- $brokers : array<string|int, mixed>
- The array of created "drivers".
- __call() : mixed
- Dynamically call the default driver instance.
- __construct() : void
- Create a new PasswordBroker manager instance.
- broker() : PasswordBroker
- Attempt to get the broker from the local cache.
- getDefaultDriver() : string
- Get the default password broker name.
- setDefaultDriver() : void
- Set the default password broker name.
- createTokenRepository() : TokenRepositoryInterface
- Create a token repository instance based on the given configuration.
- getConfig() : array<string|int, mixed>
- Get the password broker configuration.
- resolve() : PasswordBroker
- Resolve the given broker.
Properties
$app
The application instance.
protected
Application
$app
$brokers
The array of created "drivers".
protected
array<string|int, mixed>
$brokers
= []
Methods
__call()
Dynamically call the default driver instance.
public
__call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
- $method : string
- $parameters : array<string|int, mixed>
Return values
mixed —__construct()
Create a new PasswordBroker manager instance.
public
__construct(Application $app) : void
Parameters
- $app : Application
Return values
void —broker()
Attempt to get the broker from the local cache.
public
broker([string $name = null ]) : PasswordBroker
Parameters
- $name : string = null
Return values
PasswordBroker —getDefaultDriver()
Get the default password broker name.
public
getDefaultDriver() : string
Return values
string —setDefaultDriver()
Set the default password broker name.
public
setDefaultDriver(string $name) : void
Parameters
- $name : string
Return values
void —createTokenRepository()
Create a token repository instance based on the given configuration.
protected
createTokenRepository(array<string|int, mixed> $config) : TokenRepositoryInterface
Parameters
- $config : array<string|int, mixed>
Return values
TokenRepositoryInterface —getConfig()
Get the password broker configuration.
protected
getConfig(string $name) : array<string|int, mixed>
Parameters
- $name : string
Return values
array<string|int, mixed> —resolve()
Resolve the given broker.
protected
resolve(string $name) : PasswordBroker
Parameters
- $name : string