alex3493 / symfony-api

Symfony docker boilerplate with authorization
GNU General Public License v3.0
0 stars 0 forks source link

Publish Mercure updates on app user login, logout from device and sign out #10

Closed alex3493 closed 1 month ago

alex3493 commented 1 month ago

We are now publishing Mercure updates when a user is created, updated, soft-deleted or deleted.

We have to make it consistent, so that every change to use is published as a Mercure update. Currently we are missing:

alex3493 commented 1 month ago

We have to avoid repeated code here.

In user command service where we have a private method that publishes Mercure updates. However, user login, logout and sign out actions are implemented in auth user service.

We have to introduce an abstract base class for services that can publish Mercure updates.