From a8b5387eee6c5998e04ba18031f51e4b17d82bd8 Mon Sep 17 00:00:00 2001 From: Brad Kent Date: Mon, 14 Oct 2024 11:42:39 -0500 Subject: [PATCH] Symfony events - markup listener --- .../DebugBundle/EventListener/BdkDebugBundleListener.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Debug/Framework/Symfony/DebugBundle/EventListener/BdkDebugBundleListener.php b/src/Debug/Framework/Symfony/DebugBundle/EventListener/BdkDebugBundleListener.php index ceefe5d3..fddf5cfd 100644 --- a/src/Debug/Framework/Symfony/DebugBundle/EventListener/BdkDebugBundleListener.php +++ b/src/Debug/Framework/Symfony/DebugBundle/EventListener/BdkDebugBundleListener.php @@ -14,6 +14,7 @@ use bdk\Debug; use bdk\Debug\Abstraction\Abstraction; +use bdk\Debug\Abstraction\Type; use bdk\Debug\Collector\DoctrineLogger; use bdk\Debug\LogEntry; use Doctrine\Bundle\DoctrineBundle\Registry as DoctrineRegistry; @@ -136,7 +137,10 @@ public function onDebugLog(LogEntry $logEntry) $logEntry['args'] = [ 'Notified event "%s" to listener %s', $matches['event'], - $matches['listener'], + new Abstraction(Type::TYPE_IDENTIFIER, array( + 'typeMore' => Type::TYPE_IDENTIFIER_METHOD, + 'value' => $matches['listener'], + )) ]; } if ($logEntry->getMeta('psr3level') !== LogLevel::CRITICAL) {