protected function loadConfigFile(string $key)
    {
        $key = strtolower($key);
        $filename = $this->path . DIRECTORY_SEPARATOR . ucfirst($key) . Config::CONFIG_FILE_EXTENSION;

        if (file_exists($filename)) {
            $this->configuration[$key] = require $filename;
            return;
        }

        throw new ConfigException('Unable to load resource: ' . $filename);
    }
protected function loadConfigFile(string $key)
    {
        $key = strtolower($key);
        $filename = $this->path . DIRECTORY_SEPARATOR . ucfirst($key) . Config::CONFIG_FILE_EXTENSION;

        if (file_exists($filename)) {
            $this->configuration[$key] = require $filename;
            return;
        }

        throw new ConfigException('Unable to load resource: ' . $filename);
    }
protected function loadConfigFile ( string $ key ) { $ key = strtolower ( $ key ) ; $ filename = $ this -> path . DIRECTORY_SEPARATOR . ucfirst ( $ key ) . Config :: CONFIG_FILE_EXTENSION ; if ( file_exists ( $ filename ) ) { $ this -> configuration [ $ key ] = require $ filename ; return ; } throw new ConfigException ( 'Unable to load resource: ' . $ filename ) ; }
Loads a configuration file in to memory

@param $key
@throws ConfigException when file is missing
Loads a configuration file in to memory