Fix #93: Rename AMQP namespace to Amqp#128
Merged
Merged
Conversation
There was a problem hiding this comment.
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/fromYiisoft\Queue\AMQP\*toYiisoft\Queue\Amqp\*. - Updated
composer.jsonPSR-4 autoload and autoload-dev mappings to the new namespace prefix. - Updated imports and test namespaces across unit/integration tests, benchmarks, and the
tests/yiiconsole 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.
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.
Rename the package namespace from
Yiisoft\Queue\AMQPtoYiisoft\Queue\Amqp.