Свойство | Тип | Описание | |
---|---|---|---|
$serviceType |
Метод | Описание | |
---|---|---|
__construct ( $serviceType, PhpBench\DependencyInjection\Container $container, $defaultService = null ) | ||
getService ( string $name = null ) : object | Return the named service, lazily creating it from the container if it has not yet been accessed. | |
registerService ( string $name, string $serviceId ) | Register a service ID with against the given name. | |
setService ( string $name, object $object ) | Directly set a named service. |
Метод | Описание | |
---|---|---|
assertServiceExists ( $name ) |
public __construct ( $serviceType, PhpBench\DependencyInjection\Container $container, $defaultService = null ) | ||
$container | PhpBench\DependencyInjection\Container |
public getService ( string $name = null ) : object | ||
$name | string | |
Результат | object |
public registerService ( string $name, string $serviceId ) | ||
$name | string | |
$serviceId | string |
public setService ( string $name, object $object ) | ||
$name | string | |
$object | object |