Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #37028 [FrameworkBundle] Fix enabled_locales behavior (tgalopin)
This PR was merged into the 5.1 branch. Discussion ---------- [FrameworkBundle] Fix enabled_locales behavior | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - I was experimenting with enabled_locales on my application and I noticed the cache didn't actually change. It seems the generated service definition was invalid: the file `var/cache/dev/ContainerFEQLy1x/App_KernelDevDebugContainer.php` defined `getTranslator_DefaultService` by calling `new Translator` with 7 arguments instead of 6. It seems to be due to the fact that the DI extension does not replace the right argument. With the following fix applied the behavior works as expected. However, reading the comment of Javier in #32433, it seems he tested it against Demo and it worked with the previous code. I'm not sure why, @javiereguiluz I'd be interested in knowing if I'm missing something here :) . Commits ------- e2ce7f5 Fix enabled_locales behavior
- Loading branch information