PHP - Manual: MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted
2025-02-27
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted — Notification method for a started command
$event
): voidIf the subscriber is registered, this method is called when a command is sent to the server.
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