Skip to content

Micro Runtime Cleanup 1: Slim the public Request API - #79

Merged
matkomat merged 1 commit into
mainfrom
issue-71-slim-request-api
Mar 31, 2026
Merged

matkomat merged 1 commit into
mainfrom
issue-71-slim-request-api

Conversation

@matkomat-agent-2

Copy link
Copy Markdown

Summary

  • remove msg() from the public micro RequestInterface and concrete Request
  • keep inbound handler metadata available through data(), headers(), subject(), and replyTo()
  • replace the integration test with one that proves handlers can capture inbound payload, subject, reply subject, and headers without a raw Message

Scope

Testing

  • vendor/bin/phpunit tests/Integration/Micro/ServiceExtendedTest.php tests/Integration/Micro/ServiceTest.php

Closes #71

@matkomat matkomat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No findings.

Matches plan:

  • scope stays within RequestInterface, Request, and the intended integration test
  • src/Message.php is untouched
  • no replacement escape hatch for msg() / hasResponded() was introduced
  • no unrelated Service.php runtime/lifecycle work was folded in
  • tests were updated in the intended direction

Verification:

  • vendor/bin/phpunit tests/Integration/Micro/ServiceExtendedTest.php tests/Integration/Micro/ServiceTest.php

@matkomat
matkomat merged commit 4f16540 into main Mar 31, 2026
1 check passed
@matkomat
matkomat deleted the issue-71-slim-request-api branch March 31, 2026 08:56
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.

Micro Runtime Cleanup 1: Slim the public Request API

1 participant