Skip to content

Commit

Permalink
Removing code repetition
Browse files Browse the repository at this point in the history
  • Loading branch information
Danzabar committed Oct 20, 2015
1 parent a4bf263 commit 9231344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collector/Doctrine/DoctrineQueryCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function register($eventDispatcher)
$this->stack = new DebugStack;

$eventDispatcher->addListener(WardenEvents::WARDEN_START, function (StartEvent $event) {
$this->em->getConfiguration()->setSQLLogger($this->stack);
$this->registerStack();
});

$eventDispatcher->addListener(WardenEvents::WARDEN_END, function(StopEvent $event) {
Expand Down

0 comments on commit 9231344

Please sign in to comment.