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] Move translation service configuration from xml to php #37186 #37258

Merged
merged 1 commit into from Jun 15, 2020
Merged

[FrameworkBundle] Move translation service configuration from xml to php #37186 #37258

merged 1 commit into from Jun 15, 2020

Conversation

malteschlueter
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets #37186
License MIT
Doc PR -

Move translation service configuration from xml to php

])
->call('setConfigCacheFactory', [service('config_cache_factory')])
->tag('kernel.locale_aware')

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh Github, my answer was not published -_- :D


That was also my first thought but at the end i just orientated on Fabiens PR src/Symfony/Bundle/TwigBundle/Resources/config/twig.php#67.

$container->services()
->set('translator.default', Translator::class)
->args([
service_locator([]), // translation loaders locator
Copy link
Member

Choose a reason for hiding this comment

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

this should be an abstract arg as well if you use abstract_arg for the other params anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for you suggestion @Tobion. I changed the call to abstract_arg

@Tobion
Copy link
Member

Tobion commented Jun 15, 2020

Thank you @malteschlueter.

@Tobion Tobion merged commit a367d14 into symfony:master Jun 15, 2020
@malteschlueter malteschlueter deleted the translation-services-php_37186 branch June 15, 2020 10:55
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

5 participants