PHP 클래스 PhpBench\Registry\Registry

Lazily instantiates tagged services which are associated with a name and stores configurations which are relevant to these services. $reg->getService($config['renderer']); $reg->render($something, $config);
파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

보호된 프로퍼티들

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

메소드 상세

__construct() 공개 메소드

public __construct ( $serviceType, PhpBench\DependencyInjection\Container $container, $defaultService = null )
$container PhpBench\DependencyInjection\Container

getService() 공개 메소드

Return the named service, lazily creating it from the container if it has not yet been accessed.
public getService ( string $name = null ) : object
$name string
리턴 object

registerService() 공개 메소드

Register a service ID with against the given name.
public registerService ( string $name, string $serviceId )
$name string
$serviceId string

setService() 공개 메소드

Directly set a named service.
public setService ( string $name, object $object )
$name string
$object object

프로퍼티 상세

$serviceType 보호되어 있는 프로퍼티

protected $serviceType