Skip to content

Commit

Permalink
Extension: Remove duplicated query panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Nov 16, 2021
1 parent d6330cd commit b1e2657
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/DatabaseExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,10 @@ public function afterCompile(ClassType $class): void
{
if (($this->getContainerBuilder()->parameters['debugMode'] ?? false) === true) {
$initialize = $class->getMethod('initialize');
$initialize->addBody(
'$this->getService(?)->addPanel($this->getService(?));',
['tracy.bar', 'doctrine.queryPanel'],
);
$initialize->addBody(
'$this->getService(?)->addPanel(new ?);',
['tracy.blueScreen', ContainerBuilder::literal(DbalBlueScreen::class)],
);

if (\class_exists(Debugger::class) === true) {
/** @var ServiceDefinition $entityManager */
$entityManager = $this->getContainerBuilder()->getDefinitionByType(EntityManager::class);
Expand Down

0 comments on commit b1e2657

Please sign in to comment.