Skip to content

[EventDispatcher] Enable the possibility of deprecating events #52973

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

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from

Conversation

Jeroeny
Copy link
Contributor

@Jeroeny Jeroeny commented Dec 9, 2023

Q A
Branch? 7.1
Bug fix? no
New feature? yes
Deprecations? no
License MIT

Currently there is no way to deprecate events in the framework used by the EventDispatcher. It's probably not even desired to enable this possibility, but I wanted to have a go at it anyway.

The changes in RegisterListenersPass might be reverted if throwing the deprecation in addListener. Though if users are DI-configuring there own EventDispatcher, they might not have set the $deprecated argument and won't get the deprecation notices.

#SymfonyHackday

@Jeroeny Jeroeny force-pushed the deprecatable-events branch from d6755cf to ca5ba70 Compare December 9, 2023 14:02
@xabbuh xabbuh modified the milestones: 7.1, 7.2 May 15, 2024
@fabpot fabpot modified the milestones: 7.2, 7.3 Nov 20, 2024
@fabpot fabpot modified the milestones: 7.3, 7.4 May 26, 2025
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