Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1804

Implement Manager::addSubscriber and removeSubscriber

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None

      This will allow registering subscribers with specific Managers. Since libmongoc dispatches events based on clients, it will still be possible for a Manager's subscriber to receive events from another Manager if both share the same client. That caveat should be documented, but it's unlikely to affect most users.

      While not originally discussed in the scope for PHPC-1666, this implementation will additionally ensure that the same subscriber is not notified multiple times. That could otherwise happen if a subscriber was registered with two Managers sharing the same client, or with a single Manager and also globally.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: