fix: classMap에서 orig.php만 있고, 본 php는 없는 케이스 고려
This commit is contained in:
@@ -9,6 +9,9 @@ $loader->addClassMap((function () {
|
|||||||
$d_settingMap = [];
|
$d_settingMap = [];
|
||||||
foreach (glob(__DIR__.'/d_setting/*.orig.php') as $filepath) {
|
foreach (glob(__DIR__.'/d_setting/*.orig.php') as $filepath) {
|
||||||
$filepath = str_replace('.orig.php', '.php', $filepath);
|
$filepath = str_replace('.orig.php', '.php', $filepath);
|
||||||
|
if(!file_exists($filepath)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$filename = basename($filepath);
|
$filename = basename($filepath);
|
||||||
$classname = explode('.', $filename)[0];
|
$classname = explode('.', $filename)[0];
|
||||||
$d_settingMap['sammo\\'.$classname] = $filepath;
|
$d_settingMap['sammo\\'.$classname] = $filepath;
|
||||||
|
|||||||
Reference in New Issue
Block a user