protected function loadJsonConfigFile(string $fileKey, string $filePath)
    {
        $json   = file_get_contents($filePath);
        $config = json_decode($json);

        if ($config === null) {
            throw new Exception(
                json_last_error_msg(),
                $this::ERR_JSON_PARSE
            );
        }

        $this->config[$fileKey] = $config;
    }
protected function loadJsonConfigFile(string $fileKey, string $filePath)
    {
        $json   = file_get_contents($filePath);
        $config = json_decode($json);

        if ($config === null) {
            throw new Exception(
                json_last_error_msg(),
                $this::ERR_JSON_PARSE
            );
        }

        $this->config[$fileKey] = $config;
    }
protected function loadJsonConfigFile ( string $ fileKey , string $ filePath ) { $ json = file_get_contents ( $ filePath ) ; $ config = json_decode ( $ json ) ; if ( $ config === null ) { throw new Exception ( json_last_error_msg ( ) , $ this :: ERR_JSON_PARSE ) ; } $ this -> config [ $ fileKey ] = $ config ; }
Load a json config file

@param string $fileKey The file's key. Most of the time, the path to
the file from the $this->configDir value
@param string $filePath The path to the file

@return void

@throws \Exception If there is an error from the json parser
Load a json config file