msgphp / symfony-demo-app

A Symfony demo application with basic user management
https://github.com/msgphp/msgphp
MIT License
0 stars 0 forks source link

Use API Platform + SF Messenger dedicated #119

Closed ro0NL closed 3 years ago

ro0NL commented 4 years ago

https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus

split the write ops in https://github.com/msgphp/symfony-demo-app/blob/master/src/Api/Projection/UserProjection.php in dedicated API resources

change many controllers for endpoints to a single a message handler, serving as a proxy (route all projections as such). For generic purpose it could leverage a ApiProjectionMessageToDomainMessgage conversion, and re-dispatch.