Skip to content

[EventDispatcher] [RFC] feat: swap from event constant to event class #20889

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Apr 15, 2025

Hello, another thing I notice in the doc is the usage of old "string" via (constant) for the event dispatcher and listener/subscriber

do you think it is worth it in sf v7+ to only document the "new way" via event class which is the event dispatched internally?

thank !

@carsonbot carsonbot changed the title [RFC] feat: swap from event constant to event class [EventDispatcher] [RFC] feat: swap from event constant to event class Apr 15, 2025
@javiereguiluz javiereguiluz added this to the 6.4 milestone Apr 15, 2025
@javiereguiluz javiereguiluz changed the base branch from 7.2 to 6.4 April 15, 2025 15:34
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner April 15, 2025 15:34
@javiereguiluz javiereguiluz merged commit 9aa3f8a into symfony:6.4 Apr 15, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Yes, this is better and we already use the new notation everywhere else. Thanks Antoine!

@94noni 94noni deleted the patch-17 branch April 15, 2025 15:46
@94noni
Copy link
Contributor Author

94noni commented Apr 15, 2025

go it thx, I will try to make a pass on the codebase for any leftover :)

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

3 participants