Guillaume Bourgeois 6 месяцев назад
Родитель
Сommit
80d3a0adf9
2 измененных файлов: 3 добавлений и 5 удалений
  1. +0
    -2
      Definition/ApplicationDefinition.php
  2. +3
    -3
      EventListener/ExceptionListener.php

+ 0
- 2
Definition/ApplicationDefinition.php Просмотреть файл

@@ -2,8 +2,6 @@

namespace Lc\SovBundle\Definition;

use App\Container\LoyaltyProgram\LoyaltyProgramChainingContainer;
use App\Container\Merchant\LeavePeriodContainer;
use Lc\SovBundle\Container\ComponentContainer;
use Lc\SovBundle\Container\File\FileContainer;
use Lc\SovBundle\Container\Newsletter\NewsletterContainer;

+ 3
- 3
EventListener/ExceptionListener.php Просмотреть файл

@@ -20,8 +20,8 @@ class ExceptionListener
// You get the exception object from the received event
$exception = $event->getThrowable();

// On détecte une erreur interne (500), on remove les sessions qui servent de filtre dans l'admin
if ($exception instanceof HttpExceptionInterface != true) {
// On détecte une erreur interne (500), on remove les sessions qui servent de filtre dans l'admin
/*if ($exception instanceof HttpExceptionInterface != true) {
if (!headers_sent()) {
foreach ($this->session->all() as $key => $s) {
if (str_contains($key, "_filter")) {
@@ -29,6 +29,6 @@ class ExceptionListener
}
}
}
}
}*/
}
}

Загрузка…
Отмена
Сохранить