Skip to content

Commit b4c79d7

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Update routing.rst Update dic_tags.rst
2 parents 70a4199 + 1775132 commit b4c79d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ file
927927
When executing the ``translation:update`` command, it uses extractors to
928928
extract translation messages from a file. By default, the Symfony Framework
929929
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
931931
help to find and extract translation keys from Twig templates and PHP files.
932932

933933
You can create your own extractor by creating a class that implements

routing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)