Skip to content

feat(hook): add per-protocol config.before_encode filter hooks#982

Open
AMD97 wants to merge 1 commit into
cedar2025:masterfrom
AMD97:feat/add-protocol-hook
Open

feat(hook): add per-protocol config.before_encode filter hooks#982
AMD97 wants to merge 1 commit into
cedar2025:masterfrom
AMD97:feat/add-protocol-hook

Conversation

@AMD97

@AMD97 AMD97 commented Jun 17, 2026

Copy link
Copy Markdown

Add filter hooks after config build and before serialization so plugins can customize subscription output without patching protocol classes.

  • Add protocol.{name}.config.before_encode filter hooks to all 11 subscription protocol handlers, fired after config is built and before YAML/JSON/base64 serialization.
  • Add AbstractProtocol::filterConfigBeforeEncode() and ProtocolConfigHooks registry; extend php artisan hook:list to include registered protocol hooks.
  • Document new hooks in the Popular Hooks table in the plugin development guide.

Add filter hooks after config build and before serialization so plugins
can customize subscription output without patching protocol classes.
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