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

Mark all command and compiler pass classes as final #796

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 9, 2023

All the commands are glue code for Doctrine features. If some needs to change the behavior of a command, they can duplicate the code.
Maintenance is a lot easier when this classes are marked internal, as we don't have to keep backward-compatibility.

Copy link
Contributor

@franmomu franmomu left a comment

Choose a reason for hiding this comment

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

I'm going to open an issue in mongodb-odm to add the dm option to these commands, that way I think we can remove these classes.

@franmomu franmomu added this to the 5.0.0 milestone Dec 9, 2023
@franmomu franmomu added the Task label Dec 9, 2023
@GromNaN
Copy link
Member Author

GromNaN commented Dec 9, 2023

@franmomu maybe we should mark them internal in 4.7 and final in 5.0. So this breaking change can be reported before upgrading to the major version.

@franmomu
Copy link
Contributor

franmomu commented Dec 9, 2023

@franmomu maybe we should mark them internal in 4.7 and final in 5.0. So this breaking change can be reported before upgrading to the major version.

yeah, we should warn users 👍

@GromNaN GromNaN changed the title Mark all command classes as final and internal Mark all command and compiler pass classes as final Dec 10, 2023
@GromNaN
Copy link
Member Author

GromNaN commented Dec 10, 2023

The classes are now internal in 4.7, and this PR mark them as final in 5.0

@GromNaN GromNaN merged commit b07f049 into doctrine:5.0.x Dec 10, 2023
13 checks passed
@GromNaN GromNaN deleted the command-internal branch December 10, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants