PHP Class Krucas\LaravelUserEmailVerification\VerificationBrokerManager

Inheritance: implements Krucas\LaravelUserEmailVerification\Contracts\Factory
Show file Open project: edvinaskrucas/laravel-user-email-verification

Protected Properties

Property Type Description
$app Illuminate\Foundation\Application The application instance.
$brokers array The array of resolved repositories.
$customCreators array The registered custom driver creators.

Public Methods

Method Description
__call ( string $method, array $parameters ) : mixed Dynamically call the default driver instance.
__construct ( Illuminate\Foundation\Application $app ) Create a new Factory instance.
broker ( string | null $name = null ) : mixed Get a verification broker instance by name.
extend ( string $driver, Closure $callback ) Register a custom driver creator Closure.
getDefaultDriver ( ) : string Get the default settings repository name.
setDefaultDriver ( string $name ) : void Set the default driver name.

Protected Methods

Method Description
callCustomCreator ( string $name, array $config ) : mixed Call a custom driver creator.
createDatabaseRepository ( array $config ) : Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface Create database token repository.
createTokenRepository ( array $config ) : Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface Create token repository
createUsersBroker ( array $config ) : Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker Create users broker.
get ( string $name ) : Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker Attempt to get the broker from the local cache.
getConfig ( string $name ) : array Get the broker configuration.
resolve ( string $name ) : Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker Resolve the given broker.

Method Details

__call() public method

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

__construct() public method

Create a new Factory instance.
public __construct ( Illuminate\Foundation\Application $app )
$app Illuminate\Foundation\Application

broker() public method

Get a verification broker instance by name.
public broker ( string | null $name = null ) : mixed
$name string | null
return mixed

callCustomCreator() protected method

Call a custom driver creator.
protected callCustomCreator ( string $name, array $config ) : mixed
$name string
$config array
return mixed

createDatabaseRepository() protected method

Create database token repository.
protected createDatabaseRepository ( array $config ) : Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface
$config array
return Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface

createTokenRepository() protected method

Create token repository
protected createTokenRepository ( array $config ) : Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface
$config array
return Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface

createUsersBroker() protected method

Create users broker.
protected createUsersBroker ( array $config ) : Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker
$config array
return Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker

extend() public method

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

get() protected method

Attempt to get the broker from the local cache.
protected get ( string $name ) : Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker
$name string
return Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker

getConfig() protected method

Get the broker configuration.
protected getConfig ( string $name ) : array
$name string
return array

getDefaultDriver() public method

Get the default settings repository name.
public getDefaultDriver ( ) : string
return string

resolve() protected method

Resolve the given broker.
protected resolve ( string $name ) : Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker
$name string
return Krucas\LaravelUserEmailVerification\Contracts\VerificationBroker

setDefaultDriver() public method

Set the default driver name.
public setDefaultDriver ( string $name ) : void
$name string
return void

Property Details

$app protected property

The application instance.
protected Application,Illuminate\Foundation $app
return Illuminate\Foundation\Application

$brokers protected property

The array of resolved repositories.
protected array $brokers
return array

$customCreators protected property

The registered custom driver creators.
protected array $customCreators
return array