class
Illuminate
/
Support
/
Manager
abstract
Manager
Properties
protected
$customCreators array
The registered custom driver creators.
Default: []
protected
$drivers array
The array of created "drivers".
Default: []
Methods
public
__construct ( Container $container ) : void
Create a new manager instance.
Parameters
- $container Container
public
abstract
getDefaultDriver ( ) : string
Get the default driver name.
public
driver ( $driver ) : mixed
Get a driver instance.
Parameters
- $driver string|null
protected
createDriver ( $driver ) : mixed
Create a new driver instance.
Parameters
- $driver string
protected
callCustomCreator ( $driver ) : mixed
Call a custom driver creator.
Parameters
- $driver string
public
extend ( $driver , Closure $callback ) : $this
Register a custom driver creator Closure.
Parameters
- $driver string
- $callback Closure
public
getDrivers ( ) : array
Get all of the created "drivers".
public
setContainer ( Container $container ) : $this
Set the container instance used by the manager.
Parameters
- $container Container
public
forgetDrivers ( ) : $this
Forget all of the resolved driver instances.
public
__call ( $method , $parameters ) : mixed
Dynamically call the default driver instance.
Parameters
- $method string
- $parameters array