ManagerInterface
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
.
ServiceInterface|null
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.
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
.
ServiceInterface|null
getService($handle)
Get the driver for this handle.
ServiceInterface[]
getActiveServices()
Loops through the bound services and returns the ones that are active.