PHP 클래스 PhpBench\Registry\ConfigurableRegistry

TODO: Coupling configuration to the registry is convenient but the two are effectively unrelated and could be decoupled. $config = $reg->getConfig('foobar');
상속: extends Registry
파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $serviceType, PhpBench\DependencyInjection\Container $container, JsonDecoder $jsonDecoder )
getConfig ( $name ) : Config Return the named configuration.
setConfig ( string $name, array $config ) Set a named configuration.

비공개 메소드들

메소드 설명
processRawCliConfig ( $rawConfig ) : array Process raw configuration as received from the CLI, for example:.
resolveConfig ( $name ) : array Recursively merge configs (having the "extends" key) which extend another report.

메소드 상세

__construct() 공개 메소드

public __construct ( $serviceType, PhpBench\DependencyInjection\Container $container, JsonDecoder $jsonDecoder )
$container PhpBench\DependencyInjection\Container
$jsonDecoder PhpBench\Json\JsonDecoder

getConfig() 공개 메소드

Return the named configuration.
public getConfig ( $name ) : Config
리턴 Config

setConfig() 공개 메소드

Note that all configurations must be associated with a named service via a configuration key equal to the configuration service type of this registry.
public setConfig ( string $name, array $config )
$name string
$config array