Skip to content

Add hasStatusSupport() to Adapter#129

Open
WarLikeLaux wants to merge 1 commit into
yiisoft:masterfrom
WarLikeLaux:add-adapter-hasStatusSupport
Open

Add hasStatusSupport() to Adapter#129
WarLikeLaux wants to merge 1 commit into
yiisoft:masterfrom
WarLikeLaux:add-adapter-hasStatusSupport

Conversation

@WarLikeLaux
Copy link
Copy Markdown

Q A
Is bugfix?
New feature?
Tests added? ✔️
Tests pass? ✔️
Breaks BC? ✔️
Fixed issues

What does this PR do?

Implements AdapterInterface::hasStatusSupport() added in yiisoft/queue#299. AMQP has no status tracking, so it returns false, and status() now returns MessageStatus::NOT_FOUND instead of throwing NotImplementedException - that is what AdapterInterface::status() documents for adapters without status tracking.

Companion PR for yiisoft/queue#299 (issue yiisoft/queue#272); needs that one merged and released first.

BC

Adapter::status() no longer throws NotImplementedException; it returns MessageStatus::NOT_FOUND. The package is 1.0.0 under development.

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