PHP - Manual: MongoDB\Driver\Monitoring\TopologyClosedEvent
2025-03-12
(mongodb >=1.13.0)
The MongoDB\Driver\Monitoring\TopologyClosedEvent class encapsulates information about a closed topology.
注意: Due to the driver's connection handling and persistence behavior, this event can only be observed when a MongoDB\Driver\Manager is created with the
"disableClientPersistence"
driver option and freed before request shutdown (RSHUTDOWN).
官方地址:https://www.php.net/manual/en/class.mongodb-driver-monitoring-topologyclosedevent.php