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

Reuse TranslationTrait instead of copy-pasting code #44449

Closed
wants to merge 1 commit into from

Conversation

Koc
Copy link
Contributor

@Koc Koc commented Dec 3, 2021

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

@carsonbot carsonbot added this to the 6.1 milestone Dec 3, 2021
@Koc Koc force-pushed the feature/reuse-translations-trait branch from 9e87ea6 to efd5174 Compare December 3, 2021 15:04
@Koc
Copy link
Contributor Author

Koc commented Dec 3, 2021

failures looks like unrelated

@@ -42,6 +42,8 @@
#[AsCommand(name: 'translation:extract', description: 'Extract missing translations keys from code to translation files.')]
class TranslationUpdateCommand extends Command
{
use TranslationTrait;
Copy link
Member

Choose a reason for hiding this comment

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

depending on an internal trait of another bundle looks like a bad idea. It would force us to stop using semver constraints in the composer.json, as the trait is not covered by semver (and so changing it in Symfony 6.2 might break FrameworkBundle 6.1)

@fabpot
Copy link
Member

fabpot commented Mar 26, 2022

Closing based on the comment from @stof

@fabpot fabpot closed this Mar 26, 2022
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