Description
Problem
The current method RemoteEventsFactory::createEvent has a monolithic behavior:
- create event object
- validate its signature
We need to parse the event payload before, find member_id go to the repository, and get Bitrix24Account with the stored application_token. After that we pass application_token into RemoteEventsFactory::createEvent
Proposal
- mark RemoteEventsFactory::createEvent as deprecated
- create method RemoteEventsFactory::create to create event DTO
- create method validateSignature
Example
No response