private function filterTrace($trace)
{
$vpuPath = realpath(__DIR__ . '/../');
$vendorPath = realpath(__DIR__ . '/../../vendor');
$backendPath = realpath(__DIR__ . '/../../backend');
$newTrace = [];
if (!empty($trace)) {
foreach ($trace as $entity) {
if (isset($entity['file']) && !strstr($entity['file'], $vendorPath) && !strstr($entity['file'], $vpuPath) && !strstr($entity['file'], $backendPath)) {
$newTrace[] = $entity;
}
}
}
return $newTrace;
}