Interface IContainer
The dependency injection container.
Methods summary
public
|
#
addService( string $name, mixed $service )
Adds the service to the container.
Adds the service to the container.
Parameters
- $name
string
- $service
mixed object, class name or callback
|
public
mixed
|
#
getService( string $name )
Gets the service object.
Parameters
Returns
mixed
|
public
|
#
removeService( string $name )
Removes the service from the container.
Removes the service from the container.
Parameters
|
public
boolean
|
#
hasService( $name )
Does the service exist?
Returns
boolean
|