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

Removed event dispatcher #117

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

aik099
Copy link
Member

@aik099 aik099 commented Mar 12, 2024

Replaced usage of event dispatcher with direct object communication.

The decision to use the event dispatcher was incorrect because fired events were caught by all the created test suites and each test suite decided if the event was actually meant for it. In the long run (despite, that such an approach was working) this hindered library maintenance possibilities.

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.84%. Comparing base (28c5c12) to head (5dce3df).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #117      +/-   ##
============================================
- Coverage     85.68%   80.84%   -4.84%     
+ Complexity      351      329      -22     
============================================
  Files            34       31       -3     
  Lines           936      851      -85     
============================================
- Hits            802      688     -114     
- Misses          134      163      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aik099 aik099 force-pushed the remove-event-dispatcher branch from 289e602 to 0c61839 Compare March 12, 2024 10:21
@aik099 aik099 force-pushed the remove-event-dispatcher branch from 0c61839 to 5dce3df Compare March 12, 2024 10:24
@aik099 aik099 merged commit e89ac7e into minkphp:master Mar 12, 2024
11 of 12 checks passed
@aik099 aik099 deleted the remove-event-dispatcher branch March 12, 2024 10:30
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.

1 participant