public function unsafeDisplay(string $file, array $params = [], string $mime = 'text/html;charset=UTF-8') : bool
{
if (!\headers_sent()) {
$this->sendStandardHeaders($mime);
\ob_start();
// We need to render this to make sure our CSP headers send!
echo $this->twigEnv->render($file, $params);
\ob_end_flush();
return true;
}
echo $this->twigEnv->render($file, $params);
return true;
}