-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: Add possibility to handle Event (Register/Listener) with AsListener #221
feat: Add possibility to handle Event (Register/Listener) with AsListener #221
Conversation
I have fixed all the feedbacks :) You can check it 😎 |
Thanks for the hard work. I'll finish your PR, and push here. So don't push anything from now on :) |
No worries with pleasure :) Oh, I hadn't seen the message when I pushed the CI fix and rebase! |
Awesome work! I changed few things, but is was really minor. Thanks for your hard work! This feature will be very useful!!! It can be merged 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small nitpick but LGTM
Thanks @TheoD02 ! |
After I made a big mistake manipulating the PR: #218, here's the continuation, I'm sorry for that :/
I fixed most feedbacks of the PR
Event Handling and Custom User Events
Description
This pull request introduces a comprehensive feature for event handling and custom user events. It includes the implementation of an event listener system based on Symfony component and documentation to guide developers on creating, dispatching, and handling events.
Changes Made
Event Listener System
Implemented Event Listener Function:
Event Classes
Added Event Classes:
AfterApplicationInitializationEvent
,AfterConfigureTaskEvent
,AfterExecuteTaskEvent
,BeforeConfigureTaskEvent
,BeforeExecuteTaskEvent
) with their properties and usage.Allow Custom User Events
Custom User Event Class (
MyEvent
):MyEvent
with a public property$name
.Implemented Task to Dispatch Custom User Event:
my_task_that_dispatches_an_event
to dispatch an instance of theMyEvent
using thedispatch_event
function.Added Event Listener Function (
my_event_listener
):my_event_listener
to handle theMyEvent
events.Related Issues
#217