-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added an option to disable Locale listener #235
base: main
Are you sure you want to change the base?
Conversation
@@ -30,6 +30,7 @@ public function getConfigTreeBuilder() | |||
->booleanNode('translation_fallback')->defaultFalse()->end() | |||
->booleanNode('persist_default_translation')->defaultFalse()->end() | |||
->booleanNode('skip_translation_on_load')->defaultFalse()->end() | |||
->booleanNode('disable_locale_listener')->defaultFalse()->end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the double negation is weird. I would use use_request_locale
instead, defaulting to true
@romaricdrigon are you still interested in this feature ? If yes, please update it based on the feedback I gave you previously, and please rebase it to fix conflicts |
I can continue the work if needed. I definitively need this feature |
I was not sure anyone but me was needing that one. Sure I will work on it. |
Definitely a must have 👍 |
Hi all, |
Oh yeah! can't wait! |
Ping @stof : this can be merged IMO ? |
Hi,
In some case, using the Symfony2 locale (for example from the Request) to automatically filter entities using the
Translatable
extension can lead to unwanted results.I came across such case in an application where the locale was already managed explicitly.
In this PR, we create an optional
disable_locale_listener
option. The default value istrue
, so there are no BC break.