Airship\Cabin\Bridge\Landing\Admin::loadJSONConfigFile PHP Method

loadJSONConfigFile() protected method

Load a JSON configuration file
protected loadJSONConfigFile ( string $name, string $ds = DIRECTORY_SEPARATOR ) : array
$name string
$ds string
return array
    protected function loadJSONConfigFile(string $name, string $ds = DIRECTORY_SEPARATOR) : array
    {
        try {
            return \Airship\loadJSON(ROOT . $ds . 'config' . $ds . $name);
        } catch (FileNotFound $ex) {
            return [];
        }
        // Let all other errors throw
    }