interface ManagerInterface (View source)

Methods

extend(string $handle, string|callable|ServiceInterface $abstract)

Add an extension to this manager.

string[]
getExtensions()

An array of handles that have been added with ->extend.

bool
has($handle)

Does this handle exist? This method MUST return true for anything added with ->extend.

getService($handle)

Get the driver for this handle.

getActiveServices()

Loops through the bound services and returns the ones that are active.

Details

extend(string $handle, string|callable|ServiceInterface $abstract)

Add an extension to this manager.

Parameters

string $handle
string|callable|ServiceInterface $abstract

string[] getExtensions()

An array of handles that have been added with ->extend.

Return Value

string[]

bool has($handle)

Does this handle exist? This method MUST return true for anything added with ->extend.

Parameters

$handle

Return Value

bool

ServiceInterface|null getService($handle)

Get the driver for this handle.

Parameters

$handle

Return Value

ServiceInterface|null

ServiceInterface[] getActiveServices()

Loops through the bound services and returns the ones that are active.

Return Value

ServiceInterface[]