Skip to content

Commit

Permalink
Changement de l'event pour le doctrine listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume DUBOST committed Mar 29, 2019
1 parent 39c450c commit 54608d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/EtnaDoctrineService.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function onKernelResponse(FilterResponseEvent $event): void
* Subscriber sur les Appels controller
* reset la debug stack et la rajoute à l'entityManager.
*/
public function onKernelController(): void
public function onKernelRequest(): void
{
$this->debug = new DebugStack();
$this->em->getConnection()->getConfiguration()->setSQLLogger($this->debug);
Expand All @@ -90,8 +90,8 @@ public function onKernelController(): void
public static function getSubscribedEvents()
{
return [
KernelEvents::RESPONSE => 'onKernelResponse',
KernelEvents::CONTROLLER => 'onKernelController',
KernelEvents::RESPONSE => 'onKernelResponse',
KernelEvents::REQUEST => 'onKernelRequest',
];
}
}

0 comments on commit 54608d5

Please sign in to comment.