init() public method

Load configuration
public init ( ) : void
return void
Ejemplo n.º 1
0
 /**
  * @covers Bluz\Config\Config::getData
  */
 public function testGetDataBySubSection()
 {
     $this->config->setPath($this->path);
     $this->config->setEnvironment('testing');
     $this->config->init();
     $this->assertEquals(1, $this->config->getData('application', 'section1'));
 }
Ejemplo n.º 2
0
 /**
  * Init instance
  *
  * @return Instance
  */
 protected static function initInstance()
 {
     $instance = new Instance();
     $instance->setPath(Application::getInstance()->getPath());
     $instance->setEnvironment(Application::getInstance()->getEnvironment());
     $instance->init();
     return $instance;
 }