src/mako/config/Config.php
public function get(string $key, $default = null)
	{
		[$file, $path] = $this->parseKey($key);

		if(!isset($this->configuration[$file]))
		{
			$this->load($file);
		}

		return $path === null ? $this->configuration[$file] : Arr::get($this->configuration[$file], $path, $default);
	}
public function get(string $key, $default = null)
	{
		[$file, $path] = $this->parseKey($key);

		if(!isset($this->configuration[$file]))
		{
			$this->load($file);
		}

		return $path === null ? $this->configuration[$file] : Arr::get($this->configuration[$file], $path, $default);
	}
public function get ( string $ key , $ default = null ) { [ $ file , $ path ] = $ this -> parseKey ( $ key ) ; if ( ! isset ( $ this -> configuration [ $ file ] ) ) { $ this -> load ( $ file ) ; } return $ path === null ? $ this -> configuration [ $ file ] : Arr :: get ( $ this -> configuration [ $ file ] , $ path , $ default ) ; }
Returns config value or entire config array from a file.

@param  string $key     Config key
@param  mixed  $default Default value to return if config value doesn't exist
@return mixed
Returns config value or entire config array from a file .