Closed evert closed 10 years ago
It is a big change for me. Specifically, my (non open sourced) extensions won't work without any modification. But I appreciate your work. Let me think about it.
The changes I had to make were not very difficult. I understand and won't be offended if you don't want the patch, but if I can help with anything, let me know :)
@evert Thank you very much! I close this issue.
I'd like these features. that's why i couldn't make a decision.
- If a callback returns false the event chain is stopped immediately.
- $eventEmitter->once('event', $callback)
Hi!
The attached pull request migrates from using an internal event management system to using sabre/event. It has a bit more options, but still has the same feature set; and the method signatures are nearly identical.
The main differences are:
on
) returns a literalfalse
, event handling stops.buildParameters
, but it's easy to add this feature anyway.I hope you like it. I realize this is a selfish PR as I'd like to see my library used more. I would be willing to add
EmitterAwareInterface
andEmitterAwareTrait
to sabre/event, if that helps convincing you :)