Fix base locale#10308
Conversation
|
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
|
Thank you, Igor! 🎉 |
|
This is actually a BC break and should be reverted, we need to figure out a solution which allows you not to load the default locale and prevents throwing an error if the default locale is defined explicitly. I used to do a project, in which fixtures would break after this change because we removed the default locale from the explicit list but still wanted it to be created. |
|
Created #10341 which reverts it. |
|
Idea by @lchrusciel: Add a boolean option |
|
Ref. #10342 |
So, in BC in mind, with this PR it now will work like this:
If you have default (empty) configuration, as was before:
Then, base locale will be added to configuration.
But if you provided a list of locales:
Then, base locale will NOT be added to configuration.
Deprecation message was added to avoid usage base locale at all in future. To suppress that message on default configuration,
"%locale%"was passed directly to thelocalesoption atsrc/Sylius/Bundle/CoreBundle/Resources/config/app/fixtures.yml.TODO
locale: ~) - I'm not 100% sure about this so want to discuss this first.