Navigation

MongoDB\Client::removeSubscriber()

New in version 1.18.

Definition

MongoDB\Client::removeSubscriber
Unregisters a monitoring event subscriber with this Client.
function removeSubscriber(MongoDB\Driver\Monitoring\Subscriber $subscriber): void

Parameters

$subscriber : MongoDB\Driver\Monitoring\Subscriber
A monitoring event subscriber to unregister with this Client.

Errors/Exceptions

MongoDB\Exception\InvalidArgumentException for errors related to the parsing of parameters or options.

Behavior

If $subscriber is not registered with this Client, this function is a no-op.