PHP - Manual: MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted
2024-12-21
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted — Notification method for a started command
$event
): voidIf the subscriber has been registered, the driver will call this method when a command has started.
event
(MongoDB\Driver\Monitoring\CommandStartedEvent)An event object encapsulating information about the started command.
没有返回值。
官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-commandsubscriber.commandstarted.php