Skip to content

Rest* to Http* renaming - #228

Merged
ttypic merged 1 commit into
integration/v2from
pubsub-split/renaming
Sep 22, 2026
Merged

ttypic merged 1 commit into
integration/v2from
pubsub-split/renaming

Conversation

@ttypic

@ttypic ttypic commented Sep 21, 2026

Copy link
Copy Markdown

The per-side packages already describe the stateless client in HTTP
terms (createHttpClient()) while the core
still called it Rest. Align the core's naming with that terminology.

PDR-091d renames the client class so it states what it is rather than
repeating the vendor name. This is the last public-API change before the
2.0.0 integration branch merges, and the only one that touches consumers'
type hints and DI bindings.

src/AblyRest.php moves to src/PubSubHttpClient.php to preserve the PSR-4
file/class mapping, and the two test classes follow; every use statement,
type hint and docblock in src/ and tests/ is updated, so
Server::createHttpClient() now returns \Ably\PubSub\PubSubHttpClient.

The rest-prefixed ClientOptions keys are deliberately left alone: restHost
and idempotentRestPublishing are cross-SDK spec names (RSC11, TO3n), and
renaming them would leave PHP the only SDK spelling them differently.

CHANGELOG gains a breaking-change entry; UPDATING.md gains a mapping row
and loses its draft banner now the naming is settled. plan.md goes too:
it sequenced the split work, which this commit completes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: a905e84f-e262-44e2-a416-a39d6c6bcc78

📥 Commits

Reviewing files that changed from the base of the PR and between 389ff12 and e79c2a9.

📒 Files selected for processing (34)
  • CHANGELOG.md
  • UPDATING.md
  • plan.md
  • src/Auth.php
  • src/Channel.php
  • src/Channels.php
  • src/Http.php
  • src/Models/HttpPaginatedResponse.php
  • src/Models/PaginatedResult.php
  • src/Presence.php
  • src/PubSubHttpClient.php
  • src/Push.php
  • src/PushAdmin.php
  • src/PushChannelSubscriptions.php
  • src/PushDeviceRegistrations.php
  • src/Server.php
  • tests/AppStatsTest.php
  • tests/AuthTest.php
  • tests/ChannelHistoryTest.php
  • tests/ChannelIdempotentTest.php
  • tests/ChannelMessagesTest.php
  • tests/ChannelStatusTest.php
  • tests/ClientIdTest.php
  • tests/HttpTest.php
  • tests/LogTest.php
  • tests/PresenceTest.php
  • tests/PubSubHttpClientRequestTest.php
  • tests/PubSubHttpClientTest.php
  • tests/PushAdminTest.php
  • tests/PushChannelSubscriptionsTest.php
  • tests/PushDeviceRegistrationsTest.php
  • tests/TokenTest.php
  • tests/TypesTest.php
  • tests/factories/TestApp.php

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ttypic
ttypic changed the base branch from main to integration/v2 September 21, 2026 08:25
@ttypic ttypic changed the title pubsub-split/renaming Rest* to Http* renaming Sep 21, 2026
@maratal
maratal self-requested a review September 21, 2026 21:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The rename is consistently reflected across the reviewed source, tests, and documentation with no unresolved blocking issues.

Review effort: Lite
Findings: None

What changed in this PR

Renames the core AblyRest client to PubSubHttpClient across the SDK.

Changes:

  • Updated client implementations, type hints, factories, and error messages.
  • Updated tests and client references.
  • Updated migration documentation and changelog; removed plan.md.
File Description
UPDATING.md Documents the client rename.
tests/​TypesTest.php Updates the client import.
tests/​TokenTest.php Updates client construction.
tests/​PushDeviceRegistrationsTest.php Updates client usage.
tests/​PushChannelSubscriptionsTest.php Updates client usage.
tests/​PushAdminTest.php Updates client usage.
tests/​PubSubHttpClientTest.php Renames the test class and usages.
tests/​PubSubHttpClientRequestTest.php Renames the request test and usages.
tests/​PresenceTest.php Updates client usage.
tests/​LogTest.php Updates client usage.
tests/​HttpTest.php Updates client usage and documentation.
tests/​factories/​TestApp.php Updates the client import.
tests/​ClientIdTest.php Updates client construction.
tests/​ChannelStatusTest.php Updates client usage.
tests/​ChannelMessagesTest.php Updates client usage.
tests/​ChannelIdempotentTest.php Updates client usage.
tests/​ChannelHistoryTest.php Updates client usage.
tests/​AuthTest.php Updates client usage.
tests/​AppStatsTest.php Updates client usage.
src/​Server.php Returns the renamed client.
src/​PushDeviceRegistrations.php Updates the client type hint.
src/​PushChannelSubscriptions.php Updates the client type hint.
src/​PushAdmin.php Updates the client type hint.
src/​Push.php Updates the client type hint.
src/​PubSubHttpClient.php Renames the client implementation and references.
src/​Presence.php Updates the client type hint.
src/​Models/​PaginatedResult.php Updates the client type hint.
src/​Models/​HttpPaginatedResponse.php Updates the client type hint and documentation.
src/​Http.php Updates the client import.
src/​Channels.php Updates the client type hint.
src/​Channel.php Updates the client type hint.
src/​Auth.php Updates the client type hint and error message.
plan.md Removes the completed implementation plan.
CHANGELOG.md Records the breaking rename.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ttypic
ttypic merged commit a3a06d1 into integration/v2 Sep 22, 2026
22 of 23 checks passed
@ttypic
ttypic deleted the pubsub-split/renaming branch September 22, 2026 07:54

This branch was successfully deployed

1 active deployment
staging/pull/228/features e79c2a94 Deployed Sep 21, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants