Interface IServiceLocator (namespace Nette)
The service locator (EXPERIMENTAL).
Public Method Summary | |
---|---|
void |
Adds the specified service to the service container.
|
IServiceLocator|NULL |
getParent
()
Returns the parent container if any.
|
mixed |
getService
(string $name)
Gets the service object of the specified type.
|
void |
removeService
(bool $name, [$promote =
TRUE ])
Removes the specified service type from the service container.
|
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 40 addServicepublic void addService (mixed $service, [string $name = Adds the specified service to the service container.
|
||||||||||||
line 60 getParentpublic IServiceLocator|NULL getParent () Returns the parent container if any. |
||||||||||||
line 54 getServicepublic mixed getService (string $name) Gets the service object of the specified type.
|
||||||||||||
line 47 removeServicepublic void removeService (bool $name, [$promote = Removes the specified service type from the service container.
|