@@ -14,7 +14,8 @@ public function __construct($stream)
14
14
$ this ->stream = $ stream ;
15
15
}
16
16
17
- public function serverOpening (MongoDB \Driver \Monitoring \ServerOpeningEvent $ event ): void {
17
+ public function serverOpening (MongoDB \Driver \Monitoring \ServerOpeningEvent $ event ): void
18
+ {
18
19
fprintf (
19
20
$ this ->stream ,
20
21
'Server opening on %s:%s\n ' ,
@@ -23,14 +24,37 @@ public function serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $even
23
24
);
24
25
}
25
26
26
- public function serverClosed (MongoDB \Driver \Monitoring \ServerClosedEvent $ event ): void {}
27
- public function serverChanged (MongoDB \Driver \Monitoring \ServerChangedEvent $ event ): void {}
28
- public function serverHeartbeatFailed (MongoDB \Driver \Monitoring \ServerHeartbeatFailedEvent $ event ): void {}
29
- public function serverHeartbeatStarted (MongoDB \Driver \Monitoring \ServerHeartbeatStartedEvent $ event ): void {}
30
- public function serverHeartbeatSucceeded (MongoDB \Driver \Monitoring \ServerHeartbeatSucceededEvent $ event ): void {}
31
- public function topologyChanged (MongoDB \Driver \Monitoring \TopologyChangedEvent $ event ): void {}
32
- public function topologyClosed (MongoDB \Driver \Monitoring \TopologyClosedEvent $ event ): void {}
33
- public function topologyOpening (MongoDB \Driver \Monitoring \TopologyOpeningEvent $ event ): void {}
27
+ public function serverClosed (MongoDB \Driver \Monitoring \ServerClosedEvent $ event ): void
28
+ {
29
+ }
30
+
31
+ public function serverChanged (MongoDB \Driver \Monitoring \ServerChangedEvent $ event ): void
32
+ {
33
+ }
34
+
35
+ public function serverHeartbeatFailed (MongoDB \Driver \Monitoring \ServerHeartbeatFailedEvent $ event ): void
36
+ {
37
+ }
38
+
39
+ public function serverHeartbeatStarted (MongoDB \Driver \Monitoring \ServerHeartbeatStartedEvent $ event ): void
40
+ {
41
+ }
42
+
43
+ public function serverHeartbeatSucceeded (MongoDB \Driver \Monitoring \ServerHeartbeatSucceededEvent $ event ): void
44
+ {
45
+ }
46
+
47
+ public function topologyChanged (MongoDB \Driver \Monitoring \TopologyChangedEvent $ event ): void
48
+ {
49
+ }
50
+
51
+ public function topologyClosed (MongoDB \Driver \Monitoring \TopologyClosedEvent $ event ): void
52
+ {
53
+ }
54
+
55
+ public function topologyOpening (MongoDB \Driver \Monitoring \TopologyOpeningEvent $ event ): void
56
+ {
57
+ }
34
58
}
35
59
// end-mysubscriber
36
60
0 commit comments