Manager
in package
Table of Contents
- $app : Application
- The application instance.
- $customCreators : array<string|int, mixed>
- The registered custom driver creators.
- $drivers : array<string|int, mixed>
- The array of created "drivers".
- __call() : mixed
- Dynamically call the default driver instance.
- __construct() : void
- Create a new manager instance.
- driver() : mixed
- Get a driver instance.
- extend() : $this
- Register a custom driver creator Closure.
- getDefaultDriver() : string
- Get the default driver name.
- getDrivers() : array<string|int, mixed>
- Get all of the created "drivers".
- callCustomCreator() : mixed
- Call a custom driver creator.
- createDriver() : mixed
- Create a new driver instance.
Properties
$app
The application instance.
protected
Application
$app
$customCreators
The registered custom driver creators.
protected
array<string|int, mixed>
$customCreators
= []
$drivers
The array of created "drivers".
protected
array<string|int, mixed>
$drivers
= []
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 manager instance.
public
__construct(Application $app) : void
Parameters
- $app : Application
Return values
void —driver()
Get a driver instance.
public
driver([string $driver = null ]) : mixed
Parameters
- $driver : string = null
Return values
mixed —extend()
Register a custom driver creator Closure.
public
extend(string $driver, Closure $callback) : $this
Parameters
- $driver : string
- $callback : Closure
Return values
$this —getDefaultDriver()
Get the default driver name.
public
abstract getDefaultDriver() : string
Return values
string —getDrivers()
Get all of the created "drivers".
public
getDrivers() : array<string|int, mixed>
Return values
array<string|int, mixed> —callCustomCreator()
Call a custom driver creator.
protected
callCustomCreator(string $driver) : mixed
Parameters
- $driver : string
Return values
mixed —createDriver()
Create a new driver instance.
protected
createDriver(string $driver) : mixed
Parameters
- $driver : string