| 72 | $appPath || error('No "app" path defined'); |
| 73 | $dataPath ??= \defined('phlo\\data') ? \phlo\data : \rtrim($appPath, \phlo\slash).\phlo\slash.'data/'; |
| 74 | \is_file($file = \rtrim($dataPath, \phlo\slash).\phlo\slash.'build.json') || error('No data/build.json file'); |
| 75 | $time = \filemtime($file); |
| 76 | if (isset($cache[$key]) && ($mtime[$key] ?? 0) === $time) return $cache[$key]; |
| 77 | $build = \json_decode(\file_get_contents($file), true); |
| 78 | \is_array($build) || error('Build Error: Invalid data/build.json'); |