MessageThreadReadListenerRegistry
in package
FinalYes
Finds all services implementing {@see MessageThreadReadListener} and notifies them of a thread read.
Resolved lazily through the container (same approach as PaymentGatewayRegistry):
ResponseManager depends on MessageThreadManager, so injecting the listeners into it
directly would create a dependency cycle.
Table of Contents
Properties
- $container : Container
Methods
- __construct() : mixed
- notify() : void
Properties
$container read-only
private
Container
$container
Methods
__construct()
public
__construct(Container $container) : mixed
Parameters
- $container : Container
notify()
public
notify(int $threadId, int $userId) : void
Parameters
- $threadId : int
- $userId : int