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

Determine events map dynamically #1418

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Jan 13, 2024

The current events map is missing some events, such as the command.signal event. It also references some legacy event classes, like the GetResponseEvent class, which are no longer necessary since the minimum required version does not support these classes anymore.

This PR modifies the EventRegistry so that the events map is determined dynamically. The added benefit of this approach is that only the events that are actually available are listed.

@weaverryan
Copy link
Member

This is so much better - thanks @HypeMC!

@weaverryan weaverryan merged commit 394a970 into symfony:main Feb 1, 2024
6 of 7 checks passed
@HypeMC HypeMC deleted the improve-events-map branch February 1, 2024 18:56
@jrushlow jrushlow mentioned this pull request Feb 6, 2024
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.

2 participants