|
|
|
|
|
|
|
|
// You get the exception object from the received event |
|
|
// You get the exception object from the received event |
|
|
$exception = $event->getThrowable(); |
|
|
$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()) { |
|
|
if (!headers_sent()) { |
|
|
foreach ($this->session->all() as $key => $s) { |
|
|
foreach ($this->session->all() as $key => $s) { |
|
|
if (str_contains($key, "_filter")) { |
|
|
if (str_contains($key, "_filter")) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |