protected static function getLocalConfiguration($dirname)
    {
        if (is_dir($dirname) && empty(self::$localConfigurations[$dirname])) {
            $localConfig                         = $dirname.DIRECTORY_SEPARATOR.'local.json';
            self::$localConfigurations[$dirname] = file_exists($localConfig) ?
                (array)@\json_decode(file_get_contents($localConfig)) : [];
        }

        return self::$localConfigurations[$dirname];
    }
protected static function getLocalConfiguration($dirname)
    {
        if (is_dir($dirname) && empty(self::$localConfigurations[$dirname])) {
            $localConfig                         = $dirname.DIRECTORY_SEPARATOR.'local.json';
            self::$localConfigurations[$dirname] = file_exists($localConfig) ?
                (array)@\json_decode(file_get_contents($localConfig)) : [];
        }

        return self::$localConfigurations[$dirname];
    }
protected static function getLocalConfiguration ( $ dirname ) { if ( is_dir ( $ dirname ) && empty ( self :: $ localConfigurations [ $ dirname ] ) ) { $ localConfig = $ dirname . DIRECTORY_SEPARATOR . 'local.json' ; self :: $ localConfigurations [ $ dirname ] = file_exists ( $ localConfig ) ? ( array ) @ \ json_decode ( file_get_contents ( $ localConfig ) ) : [ ] ; } return self :: $ localConfigurations [ $ dirname ] ; }
Read, cache and return a directory specific local configuration

@param string $dirname Directory name

@return array Directory specific local configuration
Read cache and return a directory specific local configuration