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

Remove extending from ContainerAwareCommand #529

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented Mar 4, 2020

Q A
Bug fix? no
New feature? no
BC breaks? I guess so
Deprecations? no
Tests pass? yes
Fixed tickets #515
License Apache2

Description

I removed extending from ContainerAwareCommand by extending from Command and adding getContainer and setContainer methods and also calling setContainer from the service declaration. I think it is BC, but maybe I'm missing something.

@franmomu franmomu mentioned this pull request Mar 4, 2020
@goetas
Copy link
Collaborator

goetas commented Mar 4, 2020

I think that we can consider this as not-BC. People should not have extended those command IMO. @gnat42 what do you think?

Can we remove completly the setContainer/getContainer methods?

@goetas
Copy link
Collaborator

goetas commented Mar 4, 2020

i've forgot about it, but did you check https://github.com/schmittjoh/JMSTranslationBundle/pull/515/files ?

@franmomu
Copy link
Contributor Author

franmomu commented Mar 4, 2020

i've forgot about it, but did you check https://github.com/schmittjoh/JMSTranslationBundle/pull/515/files ?

Yes, It does the same thing but with the container and using kernel.project_dir

@gnat42
Copy link
Collaborator

gnat42 commented Mar 5, 2020

Hey @goetas, I think its fine to remove that. Extending the commands makes no sense so even if it was a break, I kinda feel like its one that is ok.

@franmomu franmomu force-pushed the remove_command_deprecations branch from 4081259 to dd939d0 Compare March 5, 2020 08:02
@franmomu franmomu mentioned this pull request Mar 5, 2020
3 tasks
@goetas goetas merged commit 88450b4 into schmittjoh:master Mar 6, 2020
@goetas
Copy link
Collaborator

goetas commented Mar 6, 2020

Thanks for your work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants