Interface IServiceLocator (namespace Nette)
The service locator.
Public Method Summary | |
---|---|
void |
Adds the specified service to the service container.
|
mixed |
getService
(string $name, [$options =
NULL ])
Gets the service object of the specified type.
|
bool |
hasService
($name)
Exists the service?
|
void |
removeService
($name)
Removes the specified service type from the service container.
|
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 32 addServicepublic void addService (string $name, mixed $service, [bool $singleton = Adds the specified service to the service container.
|
|||||||||||||||
line 40 getServicepublic mixed getService (string $name, [$options = Gets the service object of the specified type.
|
|||||||||||||||
line 52 hasServicepublic bool hasService ($name) Exists the service?
|
|||||||||||||||
line 46 removeServicepublic void removeService ($name) Removes the specified service type from the service container.
|