PHP 클래스 N98\Magento\Application\Config

Class representing the application configuration. Created to factor out configuration related application functionality from @see N98\Magento\Application
파일 보기 프로젝트 열기: netz98/n98-magerun 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $initConfig = [], boolean $isPharMode = false, Symfony\Component\Console\Output\OutputInterface $output = null ) Config constructor.
checkConfigCommandAlias ( Symfony\Component\Console\Input\InputInterface $input ) : Symfony\Component\Console\Input\ArgvInput | Symfony\Component\Console\Input\InputInterface alias magerun command in input from config
createLoader ( array $initConfig, boolean $isPharMode, Symfony\Component\Console\Output\OutputInterface $output ) : ConfigurationLoader
getConfig ( ) : array
getDetectSubFolders ( ) : array Get names of sub-folders to be scanned during Magento detection
getLoader ( ) : ConfigurationLoader
load ( )
loadPartialConfig ( boolean $loadExternalConfig )
registerConfigCommandAlias ( Command $command )
registerCustomAutoloaders ( Composer\Autoload\ClassLoader $autoloader ) Adds autoloader prefixes from user's config
registerCustomCommands ( Application $application )
setConfig ( array $config )
setLoader ( ConfigurationLoader $configurationLoader )

비공개 메소드들

메소드 설명
debugWriteln ( string $message )
getArray ( string | array $key, array $default = [] ) : array Get array from config, default to an empty array if not set
newCommand ( string $className, string | null $commandName ) : Command
traverse ( array $keys )

메소드 상세

__construct() 공개 메소드

Config constructor.
public __construct ( array $initConfig = [], boolean $isPharMode = false, Symfony\Component\Console\Output\OutputInterface $output = null )
$initConfig array
$isPharMode boolean
$output Symfony\Component\Console\Output\OutputInterface [optional]

checkConfigCommandAlias() 공개 메소드

alias magerun command in input from config
public checkConfigCommandAlias ( Symfony\Component\Console\Input\InputInterface $input ) : Symfony\Component\Console\Input\ArgvInput | Symfony\Component\Console\Input\InputInterface
$input Symfony\Component\Console\Input\InputInterface
리턴 Symfony\Component\Console\Input\ArgvInput | Symfony\Component\Console\Input\InputInterface

createLoader() 공개 메소드

public createLoader ( array $initConfig, boolean $isPharMode, Symfony\Component\Console\Output\OutputInterface $output ) : ConfigurationLoader
$initConfig array
$isPharMode boolean
$output Symfony\Component\Console\Output\OutputInterface
리턴 ConfigurationLoader

getConfig() 공개 메소드

public getConfig ( ) : array
리턴 array

getDetectSubFolders() 공개 메소드

Get names of sub-folders to be scanned during Magento detection
public getDetectSubFolders ( ) : array
리턴 array

getLoader() 공개 메소드

public getLoader ( ) : ConfigurationLoader
리턴 ConfigurationLoader

load() 공개 메소드

public load ( )

loadPartialConfig() 공개 메소드

public loadPartialConfig ( boolean $loadExternalConfig )
$loadExternalConfig boolean

registerConfigCommandAlias() 공개 메소드

public registerConfigCommandAlias ( Command $command )
$command Symfony\Component\Console\Command\Command

registerCustomAutoloaders() 공개 메소드

Adds autoloader prefixes from user's config
public registerCustomAutoloaders ( Composer\Autoload\ClassLoader $autoloader )
$autoloader Composer\Autoload\ClassLoader

registerCustomCommands() 공개 메소드

public registerCustomCommands ( Application $application )
$application N98\Magento\Application

setConfig() 공개 메소드

public setConfig ( array $config )
$config array

setLoader() 공개 메소드

public setLoader ( ConfigurationLoader $configurationLoader )
$configurationLoader ConfigurationLoader