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

Move event alias mappings to their components #37295

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jun 15, 2020

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

For a small console tool, I wanted to use the Console, EventDispatcher and DI components standalone. In order to make use of aliased events, I had to copy over the mapping information from FrameworkBundle, which was a bit unfortunate.

With this PR, I'd like to suggest to store all alias mappings on the *Events classes of each component instead. This change will make the mapping reusable outside of the full-stack framework.

Note: I've bumped the dependencies of FrameworkBundle/SercurityBundle in order to gain access to the moved mapping information. If any of the bumps is too heavy, please tell me and I'll implement a fallback instead.

@derrabus derrabus force-pushed the improvement/move-event-aliases branch from fff41d7 to 0c93d78 Compare June 15, 2020 23:20
@chalasr chalasr added this to the next milestone Jun 16, 2020
@derrabus derrabus force-pushed the improvement/move-event-aliases branch 4 times, most recently from 96ed21e to f9df6e2 Compare June 29, 2020 15:30
Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

I like this idea.

I think the version constraints are fine. I believe bundle constraints can be quite strict, it's weird to use a 5.2 bundle in a <5.2 Symfony application.

@derrabus derrabus force-pushed the improvement/move-event-aliases branch from f9df6e2 to 28e6f6f Compare June 30, 2020 14:14
@derrabus
Copy link
Member Author

The failure on Travis looks unrelated.

@fabpot
Copy link
Member

fabpot commented Jul 1, 2020

Thank you @derrabus.

@fabpot fabpot merged commit 501542a into symfony:master Jul 1, 2020
@derrabus derrabus deleted the improvement/move-event-aliases branch July 1, 2020 12:50
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
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.

6 participants