MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted — MĂ©thode de notification pour une commande dĂ©marrĂ©e

Description

abstract public function MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted(MongoDB\Driver\Monitoring\CommandStartedEvent $event): void

Si l'observateur est enregistré, cette méthode est appelée lorsqu'une commande est envoyée au serveur.

Liste de paramĂštres

event (MongoDB\Driver\Monitoring\CommandStartedEvent)
Un objet d'événement encapsulant des informations sur la commande démarrée.

Valeurs de retour

Aucune valeur n'est retournée.

Erreurs / Exceptions

  • Lance une exception MongoDB\Driver\InvalidArgumentException lors d'une erreur survenue pendant l'analyse d'un argument.

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.