Copyright 2009-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Gunnar Wrobel (wrobel@pardus.de)
Inheritance: extends Components_Config_Base
コード例 #1
0
ファイル: ConfigsTest.php プロジェクト: horde/horde
 public function testNoNullOverride()
 {
     $configs = new Components_Configs();
     $configs->addConfigurationType($this->_getAConfig());
     $configs->addConfigurationType($this->_getNullConfig());
     $config = $configs->getOptions();
     $this->assertEquals('A', $config['a']);
 }
コード例 #2
0
ファイル: Components.php プロジェクト: horde/horde
 private static function _prepareConfig(Horde_Argv_Parser $parser)
 {
     $config = new Components_Configs();
     $config->addConfigurationType(new Components_Config_Cli($parser));
     $config->unshiftConfigurationType(new Components_Config_File($config->getOption('config')));
     return $config;
 }