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

loadJSONConfigFile() protected method

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