maximilienGilet / notification-bundle

A simple Symfony bundle to notify user
https://packagist.org/packages/mgilet/notification-bundle
MIT License
107 stars 58 forks source link

I need to understand how to listen these events with symfony 5 listener. #72

Open virtualmayur opened 4 years ago

virtualmayur commented 4 years ago

I am using this notification bundle with Symfony 5, it works perfectly, but I got stuck to use the following mentioned events with Symfony 5. These are the following events, and few of them are required for me to fetch and show details runtime at the time of event dispatch. I want to up bell count no when a notification is created or assigned. To do this there are events. I was tried to use it but it always shows in the not listened event list in the profiler. 'mgilet.notification.created' 'mgilet.notification.assigned' -> when a notification is added to a notifiable entity 'mgilet.notification.seen' 'mgilet.notification.unseen' 'mgilet.notification.modified' 'mgilet.notification.removed' 'mgilet.notification.delete'

@marcelglaeser @avramcosmin @matthieumota @Viperoo @emulienfou @4ssil Hey guys can anyone of you please help me in this. I have seen @aquibbaig you also done this, please help me there.

easternmayurt commented 4 years ago

@maximilienGilet can you please help me how can I use the above mentioned events. Please help me in that.

aquibbaig commented 4 years ago

@virtualmayur It is better if you explore the bundle's source code for your use case. I did that and it's useful.

parijke commented 4 years ago

How did you manage to get it working with Symfony 5 I get all kinds of errors