You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a locale-aware service to configure the translatable listener
Registering it in the LocaleSwitcher of Symfony has multiple benefits:
- it allows respecting the locale when it is switched in non-request
context (or after the listener that was running for request contexts),
for instance in commands or in queue consumers
- it avoids leaking the locale of a request to the beginning of the
processing of the next one when using Frankenphp in worker mode (or
as the LocaleSwitcher of Symfony resets the locale to the default
locale of the project when necessary.
<deprecatedpackage="stof/doctrine-extensions-bundle"version="1.14">The "%service_id%" service is deprecated and will be removed in 2.0. The "stof_doctrine_extensions.tool.locale_synchronizer" service should be used to provide the user instead.</deprecated>
0 commit comments