Methods summary
public
|
#
addService( string $name, mixed $service, boolean $singleton = TRUE, array $options = NULL )
Adds the specified service to the service container.
Adds the specified service to the service container.
Parameters
- $name
string service name
- $service
mixed object, class name or factory callback
- $singleton
boolean is singleton?
- $options
array factory options
|
public
mixed
|
#
getService( string $name, array $options = NULL )
Gets the service object of the specified type.
Gets the service object of the specified type.
Parameters
- $name
string service name
- $options
array options in case service is not singleton
Returns
mixed
|
public
|
#
removeService( $name )
Removes the specified service type from the service container.
Removes the specified service type from the service container.
|
public
boolean
|
#
hasService( $name )
Exists the service?
Returns
boolean
|