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

Deprecate extension via certain types of events #5785

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

morozov
Copy link
Member

@morozov morozov commented Oct 21, 2022

See #5784 for the details.

This PR deprecates all events except for postConnect. Deprecating it (the last remaining one) will require to provide the replacement for its out-of-the-box subscribers: OracleSessionInit and SQLiteSessionInit.

@morozov morozov requested a review from derrabus October 21, 2022 16:35
@morozov morozov marked this pull request as draft October 21, 2022 16:42
@morozov morozov force-pushed the deprecate-schema-ddl-events branch 3 times, most recently from 635a731 to 732a9f7 Compare October 21, 2022 17:07
@morozov morozov requested a review from greg0ire October 21, 2022 17:17
@morozov morozov changed the title Deprecate extension via schema manipulation events Deprecate extension via certain types of events Oct 21, 2022
$evm->addEventListener($eventNames, new MyEventListener());

The following events are available.
Copy link
Member

Choose a reason for hiding this comment

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

Do we usually remove docs for things that are deprecated? and if we're doing this, why do we keep the Schema events Section?

Copy link
Member Author

@morozov morozov Oct 21, 2022

Choose a reason for hiding this comment

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

Do we usually remove docs for things that are deprecated?

Not always but I did that recently in #5697 and #5705. The documentation helps users use certain APIs but we don't want them to use them. Furthermore, they may start using a feature because it's documented w/o looking into the implementation or the upgrade docs.

why do we keep the Schema events Section?

My understanding is that besides describing the schema events, this section also describes how one could subscribe to an arbitrary event (which is still technically supported). This document will be entirely removed in a subsequent PR, so I don't think we need to restructure it just before its removal.

@morozov morozov marked this pull request as ready for review October 21, 2022 19:47
@morozov morozov merged commit 946db1d into doctrine:3.5.x Oct 21, 2022
@morozov morozov deleted the deprecate-schema-ddl-events branch October 21, 2022 23:17
@morozov morozov added this to the 3.5.0 milestone Oct 22, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants