Skip to content

Commit c90cd01

Browse files
committed
Merge commit '899e00a603a0b27221c115704b1160aa5abe87ad' into neos-9
* commit '899e00a603a0b27221c115704b1160aa5abe87ad': TASK: Accept psr-4 autload pathes `NodeTypes` and `NodeTypes/`
2 parents f4435e0 + 899e00a commit c90cd01

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
@@ -104,7 +104,10 @@ public function buildCommand(string $packageKey, string $crId = 'default'): void
104104
if (
105105
$autoloadConfiguration['mappingType'] === 'psr-4'
106106
&& str_ends_with($autoloadConfiguration['namespace'], '\\NodeTypes\\')
107-
&& $autoloadConfiguration['classPath'] === $package->getPackagePath() . 'NodeTypes/'
107+
&& (
108+
$autoloadConfiguration['classPath'] === $package->getPackagePath() . 'NodeTypes'
109+
|| $autoloadConfiguration['classPath'] === $package->getPackagePath() . 'NodeTypes/'
110+
)
108111
) {
109112
$namespace = $autoloadConfiguration['namespace'];
110113
break;

0 commit comments

Comments
 (0)