Skip to content

Cleanup middleware dispatchers - #337

Open
vjik wants to merge 1 commit into
masterfrom
cleanup
Open

Cleanup middleware dispatchers#337
vjik wants to merge 1 commit into
masterfrom
cleanup

Conversation

@vjik

@vjik vjik commented Sep 12, 2026

Copy link
Copy Markdown
Member
Q A
Is bugfix?
New feature?
Breaks BC? ✔️
Tests pass? ✔️

@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.58%. Comparing base (410dc36) to head (f8c03ca).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #337      +/-   ##
============================================
+ Coverage     93.96%   94.58%   +0.62%     
+ Complexity      381      373       -8     
============================================
  Files            59       59              
  Lines          1010      978      -32     
============================================
- Hits            949      925      -24     
+ Misses           61       53       -8     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The declared breaking cleanup is consistently implemented across dispatchers, usages, and tests without unresolved defects.

Pull request overview

Simplifies middleware dispatchers by making configuration constructor-only and immutable.

Changes:

  • Removes fluent middleware mutation and inspection APIs.
  • Makes dispatcher configuration readonly.
  • Updates unit tests to pass middleware through constructors.
File summaries
File Description
src/Middleware/Push/PushMiddlewareDispatcher.php Makes configuration immutable and removes mutators.
src/Middleware/Consume/ConsumeMiddlewareDispatcher.php Removes runtime middleware replacement APIs.
src/Middleware/FailureHandling/FailureMiddlewareDispatcher.php Initializes immutable pipeline definitions in the constructor.
tests/Unit/Middleware/Push/MiddlewareDispatcherTest.php Updates push dispatcher construction tests.
tests/Unit/Middleware/Consume/MiddlewareDispatcherTest.php Updates consume dispatcher construction tests.
tests/Unit/Middleware/FailureHandling/MiddlewareDispatcherTest.php Updates failure dispatcher construction tests.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vjik
vjik requested a review from a team September 12, 2026 08:30
@vjik vjik added the status:code review The pull request needs review. label Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants