fix: classMap에서 orig.php만 있고, 본 php는 없는 케이스 고려

This commit is contained in:
2023-03-22 21:50:55 +09:00
parent ec7c97d696
commit e385820301
+3
View File
@@ -9,6 +9,9 @@ $loader->addClassMap((function () {
$d_settingMap = [];
foreach (glob(__DIR__.'/d_setting/*.orig.php') as $filepath) {
$filepath = str_replace('.orig.php', '.php', $filepath);
if(!file_exists($filepath)) {
continue;
}
$filename = basename($filepath);
$classname = explode('.', $filename)[0];
$d_settingMap['sammo\\'.$classname] = $filepath;