PHP 8.0.6 Released!


(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\addSubscriberRegisters a new monitoring event subscriber


MongoDB\Driver\Monitoring\addSubscriber ( MongoDB\Driver\Monitoring\Subscriber $subscriber ) : void

Registers a new monitoring event subscriber with the driver. Registered subscribers will be notified of monitoring events through specific methods.

Nota: If the object is already registered, this function is a no-op.


subscriber (MongoDB\Driver\Monitoring\Subscriber)

A monitoring event subscriber object to register.

Valor Retornado

Não há valor retornado.


add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top