PHP Класс N98\Magento\Application\Config

Class representing the application configuration. Created to factor out configuration related application functionality from @see N98\Magento\Application
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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