protected function loadConfig(InputInterface $input, OutputInterface $output, $saveConfig = true)
    {
        $configsPath = $this->getConfigPath($input);
        $appType = $input->getOption('app-type');
        $config = $this->loadConfigFromFile($configsPath, $appType);
        /**
         * Array format
         * [ 'OPTION_NAME:TYPE' => 'CONFIG_ARRAY_PATH', ]
         */
        $configOptions = [
            'app-host' => 'appStatic.hostname',
            'app-port:int' => 'appStatic.port',
            'app-debug:bool' => 'appStatic.debug',
        ];

        foreach ($configOptions as $optionName => $configName) {
            $value = $this->optionOrConfigValue($input, $config, $optionName, $configName);
            ArrayHelper::setValue($config, $configName, $value);
        }

        if ($saveConfig) {
            $this->_reader->data = $config;
            \Reaction::$config = $this->_reader;
        }

        return $config;
    }
protected function loadConfig(InputInterface $input, OutputInterface $output, $saveConfig = true)
    {
        $configsPath = $this->getConfigPath($input);
        $appType = $input->getOption('app-type');
        $config = $this->loadConfigFromFile($configsPath, $appType);
        /**
         * Array format
         * [ 'OPTION_NAME:TYPE' => 'CONFIG_ARRAY_PATH', ]
         */
        $configOptions = [
            'app-host' => 'appStatic.hostname',
            'app-port:int' => 'appStatic.port',
            'app-debug:bool' => 'appStatic.debug',
        ];

        foreach ($configOptions as $optionName => $configName) {
            $value = $this->optionOrConfigValue($input, $config, $optionName, $configName);
            ArrayHelper::setValue($config, $configName, $value);
        }

        if ($saveConfig) {
            $this->_reader->data = $config;
            \Reaction::$config = $this->_reader;
        }

        return $config;
    }
protected function loadConfig ( InputInterface $ input , OutputInterface $ output , $ saveConfig = true ) { $ configsPath = $ this -> getConfigPath ( $ input ) ; $ appType = $ input -> getOption ( 'app-type' ) ; $ config = $ this -> loadConfigFromFile ( $ configsPath , $ appType ) ; /**
         * Array format
         * [ 'OPTION_NAME:TYPE' => 'CONFIG_ARRAY_PATH', ]
         */ $ configOptions = [ 'app-host' => 'appStatic.hostname' , 'app-port:int' => 'appStatic.port' , 'app-debug:bool' => 'appStatic.debug' , ] ; foreach ( $ configOptions as $ optionName => $ configName ) { $ value = $ this -> optionOrConfigValue ( $ input , $ config , $ optionName , $ configName ) ; ArrayHelper :: setValue ( $ config , $ configName , $ value ) ; } if ( $ saveConfig ) { $ this -> _reader -> data = $ config ; \ Reaction :: $ config = $ this -> _reader ; } return $ config ; }
Load config data
@param InputInterface  $input
@param OutputInterface $output
@param bool            $saveConfig
@return array|mixed
@throws \Exception
Load config data