File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 927
927
When executing the ``translation:update `` command, it uses extractors to
928
928
extract translation messages from a file. By default, the Symfony Framework
929
929
has a :class: `Symfony\\ Bridge\\ Twig\\ Translation\\ TwigExtractor ` and a
930
- :class: `Symfony\\ Bundle \\ FrameworkBundle \\ Translation \\ PhpExtractor `, which
930
+ :class: `Symfony\\ Component \\ Translation \\ Extractor \\ PhpExtractor `, which
931
931
help to find and extract translation keys from Twig templates and PHP files.
932
932
933
933
You can create your own extractor by creating a class that implements
Original file line number Diff line number Diff line change @@ -1132,7 +1132,7 @@ the common configuration using options when importing the routes.
1132
1132
use Symfony\Component\Routing\Annotation\Route;
1133
1133
1134
1134
/**
1135
- * @Route("/blog", requirements={"locale ": "en|es|fr"}, name="blog_")
1135
+ * @Route("/blog", requirements={"_locale ": "en|es|fr"}, name="blog_")
1136
1136
*/
1137
1137
class BlogController
1138
1138
{
@@ -1165,7 +1165,7 @@ the common configuration using options when importing the routes.
1165
1165
name_prefix : ' blog_'
1166
1166
# these requirements are added to all imported routes
1167
1167
requirements :
1168
- locale : ' en|es|fr'
1168
+ _locale : ' en|es|fr'
1169
1169
# An imported route with an empty URL will become "/blog/"
1170
1170
# Uncomment this option to make that URL "/blog" instead
1171
1171
# trailing_slash_on_root: false
@@ -1188,7 +1188,7 @@ the common configuration using options when importing the routes.
1188
1188
prefix =" /blog"
1189
1189
name-prefix =" blog_" >
1190
1190
<!-- these requirements are added to all imported routes -->
1191
- <requirement key =" locale " >en|es|fr</requirement >
1191
+ <requirement key =" _locale " >en|es|fr</requirement >
1192
1192
</import >
1193
1193
1194
1194
<!-- An imported route with an empty URL will become "/blog/"
@@ -1215,7 +1215,7 @@ the common configuration using options when importing the routes.
1215
1215
// this is added to the beginning of all imported route names
1216
1216
->namePrefix('blog_')
1217
1217
// these requirements are added to all imported routes
1218
- ->requirements(['locale ' => 'en|es|fr'])
1218
+ ->requirements(['_locale ' => 'en|es|fr'])
1219
1219
;
1220
1220
};
1221
1221
You can’t perform that action at this time.
0 commit comments