Skip to content

Fix compatibility with yiisoft/queue after #321 - #31

Merged
samdark merged 1 commit into
masterfrom
fix-queue-321-compat
Oct 29, 2026
Merged

samdark merged 1 commit into
masterfrom
fix-queue-321-compat

Conversation

@samdark

@samdark samdark commented Oct 28, 2026

Copy link
Copy Markdown
Member

yiisoft/queue#321 removed Queue and changed the Worker and middleware factory constructors. The tests still used them, so they could no longer run against the current yiisoft/queue. They now use AsyncQueueProducer and QueueConsumer, and build the worker with the current Worker constructor and HandlerResolver.

MessageInterface::getType() now returns a non-empty string. Message returns its handler name from getType(), so the handler name is now declared as non-empty-string in the constructor and in fromPayload(). This is a docblock change only.

withChannel() stays as an adapter method. It's no longer part of AdapterInterface, but it can still be used to create an adapter for another channel.

yiisoft/queue#321 removed Queue and changed the Worker and middleware factory constructors, so the tests could not
run against the current yiisoft/queue. They now use AsyncQueueProducer and QueueConsumer, and build the worker with
the current Worker constructor and HandlerResolver.

MessageInterface::getType() now returns a non-empty string, so Message declares its handler name as non-empty-string.
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d9c03b2) to head (0d268ba).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master       #31   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        60        60           
===========================================
  Files              5         5           
  Lines            144       144           
===========================================
  Hits             144       144           

☔ 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.

@samdark
samdark merged commit a294791 into master Oct 29, 2026
14 checks passed
@samdark
samdark deleted the fix-queue-321-compat branch October 29, 2026 22:35
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