Destiny\DestinyManifest::load PHP Method

load() protected method

protected load ( string $type, string $key ) : array | null
$type string
$key string
return array | null
    protected function load($type, $key)
    {
        $cacheKey = "{$type}:{$key}";
        $json = Cache::rememberForever($cacheKey, function () use($type, $key) {
            $definition = base_path("database/manifest/{$type}/{$key}.php");
            if (is_file($definition)) {
                return require $definition;
            }
            return null;
        });
        if (empty($json)) {
            Cache::forget($cacheKey);
        }
        return $json;
    }