addConfigurationType() публичный Метод

Add a configuration type to the configuration handler.
public addConfigurationType ( Components_Config $type ) : null
$type Components_Config The configuration type.
Результат null
Пример #1
0
 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
 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;
 }