File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ public function findAnonymousComponentTemplate(string $name): ?string
28
28
$ loader = $ this ->environment ->getLoader ();
29
29
$ componentPath = rtrim (str_replace (': ' , '/ ' , $ name ));
30
30
31
- if ($ loader ->exists ($ componentPath )) {
32
- return $ componentPath ;
31
+ if ($ loader ->exists (' components/ ' . $ componentPath. ' .html.twig ' )) {
32
+ return ' components/ ' . $ componentPath. ' .html.twig ' ;
33
33
}
34
34
35
35
if ($ loader ->exists ($ componentPath .'.html.twig ' )) {
@@ -40,8 +40,8 @@ public function findAnonymousComponentTemplate(string $name): ?string
40
40
return 'components/ ' .$ componentPath ;
41
41
}
42
42
43
- if ($ loader ->exists (' components/ ' . $ componentPath. ' .html.twig ' )) {
44
- return ' components/ ' . $ componentPath. ' .html.twig ' ;
43
+ if ($ loader ->exists ($ componentPath )) {
44
+ return $ componentPath ;
45
45
}
46
46
47
47
return null ;
You can’t perform that action at this time.
0 commit comments