File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
fixtures/make-registration-form/standard_setup/config Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,24 @@ private function createRegistrationFormTest(): MakerTestDetails
33
33
''
34
34
);
35
35
$ runner ->adjustAuthenticatorForLegacyPassportInterface ('src/Security/StubAuthenticator.php ' );
36
+
37
+ if (60000 > $ runner ->getSymfonyVersion ()) {
38
+ /*
39
+ * @Legacy - Drop when Symfony 6.0 is LTS
40
+ *
41
+ * This is a round about way to handle empty yaml files and YamlSourceManipulator.
42
+ * Prior to Symfony 6.0, the routes.yaml was empty w/ a comment line. YSM
43
+ * requires a top level array structure to manipulate them.
44
+ */
45
+ $ runner ->writeFile ('config/routes.yaml ' , 'app_homepage: ' );
46
+ }
47
+
48
+ $ runner ->modifyYamlFile ('config/routes.yaml ' , function (array $ yaml ) {
49
+ $ yaml ['app_homepage ' ] = ['path ' => '/ ' , 'controller ' => 'App\Controller\TestingController::homepage ' ];
50
+ $ yaml ['app_anonymous ' ] = ['path ' => '/anonymous ' , 'controller ' => 'App\Controller\TestingController::anonymous ' ];
51
+
52
+ return $ yaml ;
53
+ });
36
54
})
37
55
;
38
56
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments