Repository navigation
Fix compatibility with yiisoft/queue after #321 - #31
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
yiisoft/queue#321 removed
Queueand changed theWorkerand middleware factory constructors. The tests still used them, so they could no longer run against the current yiisoft/queue. They now useAsyncQueueProducerandQueueConsumer, and build the worker with the currentWorkerconstructor andHandlerResolver.MessageInterface::getType()now returns a non-empty string.Messagereturns its handler name fromgetType(), so the handler name is now declared asnon-empty-stringin the constructor and infromPayload(). This is a docblock change only.withChannel()stays as an adapter method. It's no longer part ofAdapterInterface, but it can still be used to create an adapter for another channel.