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

Implement event dispatching #372

Merged
merged 1 commit into from
Jun 4, 2019
Merged

Implement event dispatching #372

merged 1 commit into from
Jun 4, 2019

Conversation

colinodell
Copy link
Member

@colinodell colinodell commented Jun 4, 2019

Instead of saving this for 2.0, I think it would be very helpful if 1.0 had a generic way to add future "hooks" into the library without needing to break backward compatibility - a basic event dispatcher implementation like this should do the trick.

I considering using PSR-14, but that would require bumping the minimum PHP version to 7.2, which I'm not interested in doing at this time - many people are using this on PHP 7.1 and I want to ensure they have a stable release too. I also considered pulling in symfony/event-dispatcher but we only need a basic implementation for now. We can re-evaluate these choices in 2.0.

@colinodell colinodell added the enhancement New functionality or behavior label Jun 4, 2019
@colinodell colinodell added this to the v1.0 milestone Jun 4, 2019
@colinodell colinodell self-assigned this Jun 4, 2019
@colinodell colinodell mentioned this pull request Jun 4, 2019
@colinodell colinodell force-pushed the event-dispatcher branch 3 times, most recently from 3c159c1 to e6a6ba3 Compare June 4, 2019 21:57
src/Environment.php Outdated Show resolved Hide resolved
src/EnvironmentInterface.php Outdated Show resolved Hide resolved
@colinodell colinodell force-pushed the event-dispatcher branch 3 times, most recently from 65e53b5 to 6d1fdb1 Compare June 4, 2019 22:40
@colinodell colinodell merged commit d3fffa3 into master Jun 4, 2019
@colinodell colinodell deleted the event-dispatcher branch June 4, 2019 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New functionality or behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants