Methods Summary | ||
---|---|---|
public
|
||
public
|
||
public
|
#
setProperty( string $name , mixed $value )
Sets propertty yin context
Value can be callable(first argument will be $this context),
it will be lazy evaluate in first use.
|
|
public
|
#
addFactory( string $name , callable $factory )
Adds factory to context as property any call to that
|
|
public
|
#
addService( string $name , SAREhub\Commons\Service\Service $service )
Adds service to context for lifecycle manage(service will be started if not started yet).
Sets service as context property.
Sets context(when implements ClientContextAware) and logger(creates based on name) of service.
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|