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 @@ -1132,7 +1132,7 @@ the common configuration using options when importing the routes.
11321132 use Symfony\Component\Routing\Annotation\Route;
11331133
11341134 /**
1135- * @Route("/blog", requirements={"locale ": "en|es|fr"}, name="blog_")
1135+ * @Route("/blog", requirements={"_locale ": "en|es|fr"}, name="blog_")
11361136 */
11371137 class BlogController
11381138 {
@@ -1165,7 +1165,7 @@ the common configuration using options when importing the routes.
11651165 name_prefix : ' blog_'
11661166 # these requirements are added to all imported routes
11671167 requirements :
1168- locale : ' en|es|fr'
1168+ _locale : ' en|es|fr'
11691169 # An imported route with an empty URL will become "/blog/"
11701170 # Uncomment this option to make that URL "/blog" instead
11711171 # trailing_slash_on_root: false
@@ -1188,7 +1188,7 @@ the common configuration using options when importing the routes.
11881188 prefix =" /blog"
11891189 name-prefix =" blog_" >
11901190 <!-- these requirements are added to all imported routes -->
1191- <requirement key =" locale " >en|es|fr</requirement >
1191+ <requirement key =" _locale " >en|es|fr</requirement >
11921192 </import >
11931193
11941194 <!-- An imported route with an empty URL will become "/blog/"
@@ -1215,7 +1215,7 @@ the common configuration using options when importing the routes.
12151215 // this is added to the beginning of all imported route names
12161216 ->namePrefix('blog_')
12171217 // these requirements are added to all imported routes
1218- ->requirements(['locale ' => 'en|es|fr'])
1218+ ->requirements(['_locale ' => 'en|es|fr'])
12191219 ;
12201220 };
12211221
You can’t perform that action at this time.
0 commit comments