Skip to content
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

[FrameworkBundle] Fix enabled_locales behavior #37028

Merged
merged 1 commit into from Jun 1, 2020
Merged

Conversation

tgalopin
Copy link
Member

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 :) .

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 (it should be merged into 5.1 branch instead).

@tgalopin tgalopin changed the base branch from master to 5.1 May 31, 2020 19:51
@tgalopin tgalopin changed the base branch from 5.1 to master May 31, 2020 19:52
@tgalopin tgalopin changed the base branch from master to 5.1 May 31, 2020 19:56
@tgalopin
Copy link
Member Author

Indeed, fixed

@fabpot
Copy link
Member

fabpot commented Jun 1, 2020

Thank you @tgalopin.

@fabpot fabpot merged commit 1696f56 into symfony:5.1 Jun 1, 2020
@tgalopin tgalopin deleted the patch-3 branch June 1, 2020 08:53
@fabpot fabpot mentioned this pull request Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants