getData() public method

Return configuration by key
public getData ( string | null $key = null, string | null $section = null ) : array | mixed
$key string | null Key of config
$section string | null Section of config
return array | mixed
Example #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'));
 }