PHP 클래스 N98\Magento\Application\ConfigurationLoader

The configuration which is global (not Magento project specific) is loaded during construction. As soon as the Magento folder is known, loadStageTwo should be called. The toArray method only works if the Magento folder specific configuration is already loaded. Class ConfigurationLoader
파일 보기 프로젝트 열기: netz98/n98-magerun

보호된 프로퍼티들

프로퍼티 타입 설명
$_configArray array
$_customConfigFilename string
$_distConfig array Cache
$_initialConfig array Config passed in the constructor
$_isPharMode boolean
$_output Symfony\Component\Console\Output\OutputInterface
$_pluginConfig array Cache
$_projectConfig array Cache
$_systemConfig array Cache
$_userConfig array Cache

공개 메소드들

메소드 설명
__construct ( array $config, boolean $isPharMode, Symfony\Component\Console\Output\OutputInterface $output ) Load config If $magentoRootFolder is null, only non-project config is loaded
getConfigurationLoaderDir ( ) : string
getPartialConfig ( boolean $loadExternalConfig = true ) : array
getVendorDir ( ) : string
loadPluginConfig ( array $config, string $magentoRootFolder ) : array Load config from all installed bundles
loadProjectConfig ( string $magentoRootFolder, string $magerunStopFileFolder, array $config ) : array MAGENTO_ROOT/app/etc/n98-magerun.yaml
loadStageTwo ( string $magentoRootFolder, boolean $loadExternalConfig = true, string $magerunStopFileFolder = '' )
loadSystemConfig ( array $config ) : array Check if there is a global config file in /etc folder
loadUserConfig ( array $config, string $magentoRootFolder = null ) : array Check if there is a user config file. ~/.n98-magerun.yaml
toArray ( ) : array

보호된 메소드들

메소드 설명
loadDistConfig ( array $initConfig ) : array
registerPluginConfigFile ( string $magentoRootFolder, Symfony\Component\Finder\SplFileInfo $file ) Loads a plugin config file and merges it to plugin config

비공개 메소드들

메소드 설명
log ( string $message )
logDebug ( string $message )

메소드 상세

__construct() 공개 메소드

Load config If $magentoRootFolder is null, only non-project config is loaded
public __construct ( array $config, boolean $isPharMode, Symfony\Component\Console\Output\OutputInterface $output )
$config array
$isPharMode boolean
$output Symfony\Component\Console\Output\OutputInterface

getConfigurationLoaderDir() 공개 메소드

getPartialConfig() 공개 메소드

public getPartialConfig ( boolean $loadExternalConfig = true ) : array
$loadExternalConfig boolean
리턴 array

getVendorDir() 공개 메소드

public getVendorDir ( ) : string
리턴 string

loadDistConfig() 보호된 메소드

protected loadDistConfig ( array $initConfig ) : array
$initConfig array
리턴 array

loadPluginConfig() 공개 메소드

Load config from all installed bundles
public loadPluginConfig ( array $config, string $magentoRootFolder ) : array
$config array
$magentoRootFolder string
리턴 array

loadProjectConfig() 공개 메소드

MAGENTO_ROOT/app/etc/n98-magerun.yaml
public loadProjectConfig ( string $magentoRootFolder, string $magerunStopFileFolder, array $config ) : array
$magentoRootFolder string
$magerunStopFileFolder string
$config array
리턴 array

loadStageTwo() 공개 메소드

public loadStageTwo ( string $magentoRootFolder, boolean $loadExternalConfig = true, string $magerunStopFileFolder = '' )
$magentoRootFolder string
$loadExternalConfig boolean
$magerunStopFileFolder string

loadSystemConfig() 공개 메소드

Check if there is a global config file in /etc folder
public loadSystemConfig ( array $config ) : array
$config array
리턴 array

loadUserConfig() 공개 메소드

Check if there is a user config file. ~/.n98-magerun.yaml
public loadUserConfig ( array $config, string $magentoRootFolder = null ) : array
$config array
$magentoRootFolder string [optional]
리턴 array

registerPluginConfigFile() 보호된 메소드

Loads a plugin config file and merges it to plugin config
protected registerPluginConfigFile ( string $magentoRootFolder, Symfony\Component\Finder\SplFileInfo $file )
$magentoRootFolder string
$file Symfony\Component\Finder\SplFileInfo

toArray() 공개 메소드

public toArray ( ) : array
리턴 array

프로퍼티 상세

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

protected array $_configArray
리턴 array

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

protected string $_customConfigFilename
리턴 string

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

Cache
protected array $_distConfig
리턴 array

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

Config passed in the constructor
protected array $_initialConfig
리턴 array

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

protected bool $_isPharMode
리턴 boolean

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

protected OutputInterface,Symfony\Component\Console\Output $_output
리턴 Symfony\Component\Console\Output\OutputInterface

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

Cache
protected array $_pluginConfig
리턴 array

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

Cache
protected array $_projectConfig
리턴 array

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

Cache
protected array $_systemConfig
리턴 array

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

Cache
protected array $_userConfig
리턴 array