File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ MongoDB\Driver\Monitoring\addSubscriber(): Adding a combined CommandSubscriber a
8
8
require_once __DIR__ . "/../utils/basic.inc " ;
9
9
10
10
use MongoDB \Driver \Command ;
11
+ use MongoDB \Driver \Monitoring \CommandStartedEvent ;
11
12
use MongoDB \Driver \Monitoring \CommandSubscriber ;
12
13
use MongoDB \Driver \Monitoring \LogSubscriber ;
13
14
use function MongoDB \Driver \Monitoring \addSubscriber ;
@@ -16,14 +17,14 @@ use function MongoDB\Driver\Monitoring\removeSubscriber;
16
17
17
18
class MySubscriber implements CommandSubscriber, LogSubscriber
18
19
{
19
- public function commandStarted (MongoDB \ Driver \ Monitoring \ CommandStartedEvent $ event ): void
20
+ public function commandStarted (CommandStartedEvent $ event ): void
20
21
{
21
22
printf ("Observed commandStarted for %s \n" , $ event ->getCommandName ());
22
23
}
23
24
24
- public function commandSucceeded (MongoDB \ Driver \ Monitoring \ CommandSucceededEvent $ event ): void {}
25
+ public function commandSucceeded ($ event ): void {}
25
26
26
- public function commandFailed (MongoDB \ Driver \ Monitoring \ CommandFailedEvent $ event ): void {}
27
+ public function commandFailed ($ event ): void {}
27
28
28
29
public function log (int $ level , string $ domain , string $ message ): void
29
30
{
You can’t perform that action at this time.
0 commit comments