namespace Nette
Interface IContext
The dependency injection container.
Direct Known Implementers
Context
public
void
|
#
addService(
string
$name,
mixed
$service,
bool
$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 bool 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 |
public
void
|
#
removeService(
$name
)
Removes the specified service type from the service container. Removes the specified service type from the service container. |
public
bool
|
#
hasService(
$name
)
Exists the service? Exists the service? |