It is necessary to add other related users to existing subscribers. The existing class Espo\Tools\Notification\NoteHookProcessor directly initializes the Espo\Services\Stream object, which makes it impossible to override the getSubscriberList method in Espo\Custom\Services\Stream
Announcement
Collapse
No announcement yet.
How to customize Espo\Services\Stream::getSubscriberList class method?
Collapse
X
-
Use binding https://docs.espocrm.com/development/di/#binding to bind a custom stream service class (extended from the existing).
PHP Code:$binder
->for(\Espo\Tools\Notification\NoteHookProcessor::class)
->bindImplementation(\Espo\Services\Stream::class, \Espo\Custom\Services\MyExtendedStream::class);
- Likes 1
Comment