PHP 클래스 Webiny\Component\ServiceManager\ConfigCompiler

상속: use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $serviceName, ConfigObject $config, array $parameters )
compile ( ) : ServiceConfig Compile current config and return a valid ServiceConfig object.

비공개 메소드들

메소드 설명
buildArguments ( string $key ) Convert simple config arguments into Argument objects
buildCallsArguments ( ) Build arguments for "Calls" methods
buildFactoryArgument ( ) Convert factory service arguments into FactoryArgument objects
buildServiceConfig ( ) : ServiceConfig Build final ServiceConfig object
extendConfig ( ArrayObject $config, ArrayObject $parentConfig ) : ArrayObject Extend $config with $parentConfig
insertParameters ( ArrayObject $config ) : ArrayObject Insert parameters into the config
manageInheritance ( ) Check if current service has a parent service and merge its config with parent service config.

메소드 상세

__construct() 공개 메소드

public __construct ( string $serviceName, ConfigObject $config, array $parameters )
$serviceName string Service name
$config Webiny\Component\Config\ConfigObject ConfigObject to compile
$parameters array Parameters to use when parsing $config

compile() 공개 메소드

That new ServiceConfig will be used to instantiate a service later in the process of creating a service instance.
public compile ( ) : ServiceConfig
리턴 ServiceConfig