File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -839,12 +839,12 @@ just to run some code. Imagine a console command that renders Twig templates
839
839
of emails in different languages. You need to change the locale only to
840
840
render those templates.
841
841
842
- The ``LocaleSwitcher `` object/service allows you to change at once the locale
842
+ The ``LocaleSwitcher `` class allows you to change at once the locale
843
843
of:
844
844
845
- 1. All the services that are tagged with ``kernel.locale_aware ``.
846
- 2. ``\Locale::setDefault() ``.
847
- 3. If a request is available, the ``_locale `` request attribute.
845
+ * All the services that are tagged with ``kernel.locale_aware ``;
846
+ * ``\Locale::setDefault() ``;
847
+ * If a request is available, the ``_locale `` request attribute.
848
848
849
849
The ``LocaleSwitcher `` service is autowireable and can be injected into other
850
850
services::
You can’t perform that action at this time.
0 commit comments