Skip to content

Commit

Permalink
EM: Register BlueScreen panel when EM init.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Apr 21, 2020
1 parent b450ea7 commit ead6873
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ead6873

Please sign in to comment.