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

PSR-14 Event Dispatcher #1184

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

eugene-borovov
Copy link
Contributor

This PR inspired of #1168 and #1145.

  • Low coupling with league/event.
  • Events have individual object type.
  • Event objects enriched by contextual data.
  • Code of examples was updated. Now it contain Event Dispatcher usage.

Copy link
Contributor

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

Thank you for working on this. Switching to PSR-14 would certainly help with integrating this library into frameworks that already provide a PSR-14 event dispatcher.

src/Events/EventDispatchableInterface.php Outdated Show resolved Hide resolved
src/Events/EventDispatchableTrait.php Outdated Show resolved Hide resolved
src/Events/EventDispatchableInterface.php Outdated Show resolved Hide resolved
src/Events/EventDispatchableTrait.php Outdated Show resolved Hide resolved
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
Signed-off-by: Eugene Borovov <eugene.borovov@gmail.com>
@TomHAnderson
Copy link

What's the hold-up on this PR and PSR-14? I'm using the league/event 3.0 in my GraphQL library https://github.com/API-Skeletons/doctrine-graphql but can't use this League library in tandem.

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.

None yet

3 participants