Skip to content

[Webhook] Add subscriber id to the subscriber class when sending webhooks #61603

@junaidbinfarooq

Description

@junaidbinfarooq

Description

Description:

We have been utilizing Symfony's webhooks in our software for some time now.
For this, we make use of the SendWebhookMessage class to dispatch the message to be handled later.

Recently, we encountered a situation where we needed to verify subscriber IDs when sending webhooks.
This would ensure we do not send webhooks to a particular set of consumers.

Since the Subscriber class does not have an ID field, we had to work around this using a custom solution somehow.

This led me to think whether the said class should have an ID field out of the box or not!
For a case like ours, it would definitely be useful and would help get rid of workarounds.

Please let me know your thoughts on this.

I could also submit a PR.

Thanks.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions