File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,20 @@ public function getTestDetails(): \Generator
122
122
Yaml::dump (['maker ' => ['root_namespace ' => 'Custom ' ]])
123
123
);
124
124
125
+ // @legacy Conditional can be removed when Symfony 5.4 support is dropped
126
+ if (60000 <= $ runner ->getSymfonyVersion ()) {
127
+ // Symfony 6.2 sets the path and namespace for router resources
128
+ $ runner ->modifyYamlFile ('config/routes.yaml ' , function (array $ config ) {
129
+ if (!isset ($ config ['controllers ' ]['resource ' ]['namespace ' ])) {
130
+ return $ config ;
131
+ }
132
+
133
+ $ config ['controllers ' ]['resource ' ]['namespace ' ] = 'Custom\Controller ' ;
134
+
135
+ return $ config ;
136
+ });
137
+ }
138
+
125
139
$ runner ->copy (
126
140
'make-crud/SweetFood-custom-namespace.php ' ,
127
141
'src/Entity/SweetFood.php '
You can’t perform that action at this time.
0 commit comments