class Illuminate / Support / Manager
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abstract

Manager

Properties

protected

$container Container

The container instance.

Default: null
protected

$config Repository

The configuration repository instance.

Default: null
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

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

public

getDrivers ( ) : array

Get all of the created "drivers".

public

getContainer ( ) : Container

Get the container instance used by the manager.

public

setContainer ( Container $container ) : $this

Set the container instance used by the manager.

Parameters

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