From ead6873b3211a0002958c8bad49b48774a123cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Tue, 21 Apr 2020 12:03:56 +0200 Subject: [PATCH] EM: Register BlueScreen panel when EM init. --- src/EntityManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/EntityManager.php b/src/EntityManager.php index 884ec82..b2ce44a 100644 --- a/src/EntityManager.php +++ b/src/EntityManager.php @@ -93,6 +93,9 @@ public function addEventListener($events, $listener): self public function init(): void { if ($this->connection === null) { + if (\class_exists(Debugger::class) === true) { + Debugger::getBlueScreen()->addPanel([TracyBlueScreenDebugger::class, 'render']); + } $this->connection = ($manager = $this->dependencies->get())->getConnection(); $this->configuration = $manager->getConfiguration(); $this->eventManager = $manager->getEventManager();