Skip to content

Commit 340e613

Browse files
committed
[Routing] Fix nested directory support in PSR4DirectoryLoader
1 parent 5a0dc50 commit 340e613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/Psr4DirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function (\SplFileInfo $current) {
7070
return !str_starts_with($current->getBasename(), '.');
7171
}
7272
),
73-
\RecursiveIteratorIterator::LEAVES_ONLY
73+
\RecursiveIteratorIterator::SELF_FIRST
7474
));
7575
usort($files, function (\SplFileInfo $a, \SplFileInfo $b) {
7676
return (string) $a > (string) $b ? 1 : -1;

0 commit comments

Comments
 (0)