Fonctions
PHP Manual

MongoDB\Driver\Monitoring\addSubscriber

(mongodb >=1.3.0)

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

Description

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

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

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

Liste de paramètres

subscriber (MongoDB\Driver\Monitoring\Subscriber)

A monitoring event subscriber object to register.

Valeurs de retour

Aucune valeur n'est retournée.

Erreurs / Exceptions

Voir aussi


Fonctions
PHP Manual