From 46d63f74d195be32f01fb00eceb33b5c0b6fc53c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 18 Sep 2024 09:32:15 +0200 Subject: [PATCH] Add traits to implement Command and SDAM subscriber methods --- src/Monitoring/CommandEvents.php | 24 ++++++++++++++ src/Monitoring/SDAMEvents.php | 54 ++++++++++++++++++++++++++++++++ tests/MonitoringTest.php | 42 +++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 src/Monitoring/CommandEvents.php create mode 100644 src/Monitoring/SDAMEvents.php create mode 100644 tests/MonitoringTest.php diff --git a/src/Monitoring/CommandEvents.php b/src/Monitoring/CommandEvents.php new file mode 100644 index 000000000..965f45269 --- /dev/null +++ b/src/Monitoring/CommandEvents.php @@ -0,0 +1,24 @@ + [ + new class implements CommandSubscriber { + use CommandEvents; + }, + ]; + + yield 'SDAM' => [ + new class implements SDAMSubscriber { + use SDAMEvents; + }, + ]; + } +}