PHP Class Krucas\LaravelUserEmailVerification\VerificationBrokerManager

Inheritance: implements Krucas\LaravelUserEmailVerification\Contracts\Factory
Afficher le fichier Open project: edvinaskrucas/laravel-user-email-verification

Protected Properties

Свойство Type Description
$app Illuminate\Foundation\Application The application instance.
$brokers array The array of resolved repositories.
$customCreators array The registered custom driver creators.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

__construct() public méthode

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

broker() public méthode

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

callCustomCreator() protected méthode

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

createDatabaseRepository() protected méthode

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

createTokenRepository() protected méthode

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

createUsersBroker() protected méthode

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

extend() public méthode

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

get() protected méthode

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

getConfig() protected méthode

Get the broker configuration.
protected getConfig ( string $name ) : array
$name string
Résultat array

getDefaultDriver() public méthode

Get the default settings repository name.
public getDefaultDriver ( ) : string
Résultat string

resolve() protected méthode

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

setDefaultDriver() public méthode

Set the default driver name.
public setDefaultDriver ( string $name ) : void
$name string
Résultat void

Property Details

$app protected_oe property

The application instance.
protected Application,Illuminate\Foundation $app
Résultat Illuminate\Foundation\Application

$brokers protected_oe property

The array of resolved repositories.
protected array $brokers
Résultat array

$customCreators protected_oe property

The registered custom driver creators.
protected array $customCreators
Résultat array