Skip to content

Fix #93: Rename AMQP namespace to Amqp#128

Merged
samdark merged 2 commits into
masterfrom
rename-amqp-namespace
Jun 4, 2026
Merged

Fix #93: Rename AMQP namespace to Amqp#128
samdark merged 2 commits into
masterfrom
rename-amqp-namespace

Conversation

@samdark
Copy link
Copy Markdown
Member

@samdark samdark commented Jun 4, 2026

Rename the package namespace from Yiisoft\Queue\AMQP to Yiisoft\Queue\Amqp.

Copilot AI review requested due to automatic review settings June 4, 2026 21:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request implements the namespace rename requested in #93 by changing the package’s public PHP namespace from Yiisoft\Queue\AMQP to Yiisoft\Queue\Amqp, aligning code, tests, tooling entrypoints, and Composer autoloading with the new casing.

Changes:

  • Renamed namespaces across src/ from Yiisoft\Queue\AMQP\* to Yiisoft\Queue\Amqp\*.
  • Updated composer.json PSR-4 autoload and autoload-dev mappings to the new namespace prefix.
  • Updated imports and test namespaces across unit/integration tests, benchmarks, and the tests/yii console entrypoint.

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/yii Updates console helper imports to Yiisoft\Queue\Amqp\*.
tests/Unit/UnitTestCase.php Renames test namespace/imports to Yiisoft\Queue\Amqp\Tests\Unit.
tests/Unit/QueueTest.php Updates unit test namespace and AMQP adapter-related imports to new prefix.
tests/Unit/QueueSettingsTest.php Updates unit test namespace/imports for settings and test message class.
tests/Unit/QueueProviderTest.php Renames unit test namespace/imports for provider and settings interfaces.
tests/Unit/QosSettingsTest.php Updates QosSettings import and test namespace to Amqp.
tests/Unit/FriendlyExceptionTest.php Updates exception import and test namespace to Amqp.
tests/Unit/ExchangeSettingsTest.php Updates exchange settings import and test namespace to Amqp.
tests/Unit/DelayMiddlewareTest.php Updates middleware/test message imports and test namespace to Amqp.
tests/Support/TestMessage.php Renames support class namespace to Yiisoft\Queue\Amqp\Tests\Support.
tests/Support/SimpleMessageHandler.php Renames support class namespace to Yiisoft\Queue\Amqp\Tests\Support.
tests/Support/MainTestCase.php Renames support class namespace to Yiisoft\Queue\Amqp\Tests\Support.
tests/Support/FileHelper.php Renames support class namespace to Yiisoft\Queue\Amqp\Tests\Support.
tests/Support/FakeAdapter.php Renames support namespace and provider interface import to Amqp.
tests/Support/ExtendedSimpleMessageHandler.php Renames support class namespace to Yiisoft\Queue\Amqp\Tests\Support.
tests/Integration/TestCase.php Renames integration test namespace and support imports to Amqp.
tests/Integration/DelayMiddlewareTest.php Updates integration test namespace and AMQP adapter/middleware/support imports to Amqp.
tests/Integration/ConsumeExistingMessagesTest.php Updates integration test namespace and adapter/provider/settings imports to Amqp.
tests/Benchmark/QueuePushBench.php Updates benchmark imports for adapter/provider/settings/test message to Amqp.
tests/Benchmark/QueueConsumeBench.php Updates benchmark imports for adapter/provider/settings/test message to Amqp.
src/Settings/QueueSettingsInterface.php Renames settings interface namespace to Yiisoft\Queue\Amqp\Settings and updates @see reference.
src/Settings/Queue.php Renames queue settings class namespace to Yiisoft\Queue\Amqp\Settings.
src/Settings/QosSettings.php Renames QoS settings class namespace to Yiisoft\Queue\Amqp\Settings.
src/Settings/ExchangeSettingsInterface.php Renames settings interface namespace to Yiisoft\Queue\Amqp\Settings and updates @see reference.
src/Settings/Exchange.php Renames exchange settings class namespace to Yiisoft\Queue\Amqp\Settings.
src/QueueProviderInterface.php Renames provider interface namespace to Yiisoft\Queue\Amqp and updates settings interface imports.
src/QueueProvider.php Renames provider implementation namespace/imports to Yiisoft\Queue\Amqp.
src/Middleware/DelayMiddleware.php Renames middleware namespace to Yiisoft\Queue\Amqp\Middleware.
src/ExistingMessagesConsumer.php Renames consumer namespace to Yiisoft\Queue\Amqp.
src/Exception/NotImplementedException.php Renames exception namespace to Yiisoft\Queue\Amqp\Exception.
src/Exception/ExchangeDeclaredException.php Renames exception namespace to Yiisoft\Queue\Amqp\Exception.
src/Adapter.php Renames adapter namespace to Yiisoft\Queue\Amqp and updates internal imports accordingly.
config/di.php Updates DI bindings imports to Yiisoft\Queue\Amqp\*.
composer.json Updates PSR-4 autoload/autoload-dev prefixes from AMQP to Amqp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@samdark samdark changed the title Rename AMQP namespace to Amqp Fix #93: Rename AMQP namespace to Amqp Jun 4, 2026
@samdark samdark merged commit d1e9207 into master Jun 4, 2026
22 checks passed
@samdark samdark deleted the rename-amqp-namespace branch June 4, 2026 22:03
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.

2 participants