PHP 클래스 Webiny\Component\Bootstrap\Environment

Detects current environment and loads the appropriate configurations.
상속: use trait Webiny\Component\StdLib\SingletonTrait, use trait Webiny\Component\Config\ConfigTrait, use trait Webiny\Component\Http\HttpTrait, use trait Webiny\Component\StdLib\StdObjectTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
getApplicationAbsolutePath ( ) : string Get the current application absolute path.
getApplicationConfig ( ) : ConfigObject Get current application configuration.
getComponentConfigs ( ) : ConfigObject Get all loaded configurations.
getCurrentEnvironmentConfig ( ) : ConfigObject Get application config based on the current environment.
getCurrentEnvironmentName ( ) : string Get the name of the current loaded environment.
initializeEnvironment ( string $applicationAbsolutePath ) Initializes the environment and loads all the configurations from it.

비공개 메소드들

메소드 설명
initializeComponentConfigurations ( ) Initializes component configurations.
initializeEnvironmentInternal ( ) Initializes current environment.
loadApplicationConfig ( ) Loads application configuration.
loadConfigurations ( string $environment ) : ConfigObject Loads all the configurations from a specific environment.
registerAppNamespace ( ) Registers the application namespace with the ClassLoader component.
setErrorReporting ( ) Sets the error reporting based on the environment.

메소드 상세

getApplicationAbsolutePath() 공개 메소드

Get the current application absolute path.

getApplicationConfig() 공개 메소드

Get current application configuration.
public getApplicationConfig ( ) : ConfigObject
리턴 Webiny\Component\Config\ConfigObject

getComponentConfigs() 공개 메소드

Get all loaded configurations.
public getComponentConfigs ( ) : ConfigObject
리턴 Webiny\Component\Config\ConfigObject

getCurrentEnvironmentConfig() 공개 메소드

Get application config based on the current environment.
public getCurrentEnvironmentConfig ( ) : ConfigObject
리턴 Webiny\Component\Config\ConfigObject

getCurrentEnvironmentName() 공개 메소드

Get the name of the current loaded environment.

initializeEnvironment() 공개 메소드

Initializes the environment and loads all the configurations from it.
public initializeEnvironment ( string $applicationAbsolutePath )
$applicationAbsolutePath string Absolute path to the root of the application.