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 @@ -839,12 +839,12 @@ just to run some code. Imagine a console command that renders Twig templates
839839of emails in different languages. You need to change the locale only to
840840render those templates.
841841
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
843843of:
844844
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.
848848
849849The ``LocaleSwitcher `` service is autowireable and can be injected into other
850850services::
You can’t perform that action at this time.
0 commit comments