Skip to content

Commit 899e00a

Browse files
committed
TASK: Accept psr-4 autload pathes NodeTypes and NodeTypes/
1 parent 332e734 commit 899e00a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Classes/Command/NodetypeObjectsCommandController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ public function buildCommand(string $packageKey): void
107107
if (
108108
$autoloadConfiguration['mappingType'] === 'psr-4'
109109
&& str_ends_with($autoloadConfiguration['namespace'], '\\NodeTypes\\')
110-
&& $autoloadConfiguration['classPath'] === $package->getPackagePath() . 'NodeTypes/'
110+
&& (
111+
$autoloadConfiguration['classPath'] === $package->getPackagePath() . 'NodeTypes'
112+
|| $autoloadConfiguration['classPath'] === $package->getPackagePath() . 'NodeTypes/'
113+
)
111114
) {
112115
$namespace = $autoloadConfiguration['namespace'];
113116
break;

0 commit comments

Comments
 (0)