What do you do if you need to set some property of the model as a result of the work of another service. For example, there is a resource that can be accessed by presenting an access code ( token ). The code is generated by the service based on [param + secret + expire] => hash
Model data is returned to the client as JSON data by a list of resources along with the keys to each resource. How to implement this correctly on symfony?