Exemplo n.º 1
0
 /**
  * loads and creates the Enlight_Config based on the config
  * file placed in the config directory
  *
  * @return Enlight_Config_Adapter_File
  */
 public function initConfigAdapter()
 {
     $adapter = new Enlight_Config_Adapter_File(array('configType' => 'ini', 'configDir' => $this->Application()->AppPath('Configs')));
     Enlight_Config::setDefaultAdapter($adapter);
     return $adapter;
 }
Exemplo n.º 2
0
 /**
  * Test case
  */
 public function testSetDefaultAdapter()
 {
     Enlight_Config::setDefaultAdapter($this->adapterTester);
     $this->assertEquals($this->adapterTester, Enlight_Config::getDefaultAdapter());
 }