프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |