8000 [Translation] modify definitions only if the do exist by xabbuh · Pull Request #25174 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Translation] modify definitions only if the do exist #25174

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

Merged
merged 1 commit into from
Nov 27, 2017

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Nov 27, 2017
Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

If the TranslatorPass is used an application without the Console
component, the commands will not be registered. Thus, their service
definitions must not be modified.

@@ -81,8 +81,13 @@ public function process(ContainerBuilder $container)
;

if ($container->hasParameter('twig.default_path')) {
Copy link
Member

Choose a reason for hiding this comment

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

if (!...) {return;}?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

If the `TranslatorPass` is used an application without the Console
component, the commands will not be registered. Thus, their service
definitions must not be modified.
@xabbuh xabbuh force-pushed the translation-commands-check branch from d753620 to eab90ef Compare November 27, 2017 14:23
@fabpot
Copy link
Member
fabpot commented Nov 27, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit eab90ef into symfony:3.4 Nov 27, 2017
fabpot added a commit that referenced this pull request Nov 27, 2017
…buh)

This PR was merged into the 3.4 branch.

Discussion
----------

[Translation] modify definitions only if the do exist

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

If the `TranslatorPass` is used an application without the Console
component, the commands will not be registered. Thus, their service
definitions must not be modified.

Commits
-------

eab90ef modify definitions only if the do exist
@xabbuh xabbuh deleted the translation-commands-check branch November 27, 2017 22:21
This was referenced Nov 30, 2017
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.

5 participants
0