Nette\DI\Config\Adapters\NeonAdapter::load PHP Method

load() public method

Reads configuration from NEON file.
public load ( $file ) : array
return array
    public function load($file)
    {
        return $this->process((array) Neon\Neon::decode(file_get_contents($file)));
    }

Usage Example

Beispiel #1
0
 /**
  * @return mixed
  */
 protected function loadConfig()
 {
     $this->data = $this->adapter->load($this->fileName);
     $data = $this->data;
     foreach ($this->root as $item) {
         $data = isset($data[$item]) ? $data[$item] : array();
     }
     return $data;
 }
All Usage Examples Of Nette\DI\Config\Adapters\NeonAdapter::load