File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 7
7
use MongoDB \Driver \Monitoring \CommandStartedEvent ;
8
8
use MongoDB \Driver \Monitoring \CommandSubscriber as CommandSubscriberInterface ;
9
9
use MongoDB \Driver \Monitoring \CommandSucceededEvent ;
10
+ use Override ;
10
11
11
12
use function get_object_vars ;
12
13
use function in_array ;
@@ -21,16 +22,19 @@ public function __construct(private Connection $connection)
21
22
{
22
23
}
23
24
25
+ #[Override]
24
26
public function commandStarted (CommandStartedEvent $ event ): void
25
27
{
26
28
$ this ->commands [$ event ->getOperationId ()] = $ event ;
27
29
}
28
30
31
+ #[Override]
29
32
public function commandFailed (CommandFailedEvent $ event ): void
30
33
{
31
34
$ this ->logQuery ($ event );
32
35
}
33
36
37
+ #[Override]
34
38
public function commandSucceeded (CommandSucceededEvent $ event ): void
35
39
{
36
40
$ this ->logQuery ($ event );
You can’t perform that action at this time.
0 commit comments