From e8e6ee2f59af8f61cad89fcf966ef14719d7f5a6 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 9 Jul 2021 17:37:25 +0200 Subject: [PATCH] Don't output errors --- src/KernelFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/KernelFactory.php b/src/KernelFactory.php index 31eac3e..14cef5f 100644 --- a/src/KernelFactory.php +++ b/src/KernelFactory.php @@ -29,6 +29,8 @@ final class KernelFactory public static function createKernel(BuildConfig $buildConfig, ?UrlChecker $urlChecker = null): Kernel { $configuration = new RSTParserConfiguration(); + // needed to avoid outputting parser errors on the console output or the webpage contents + $configuration->silentOnError(true); $configuration->setCustomTemplateDirs([__DIR__.'/Templates']); $configuration->setTheme($buildConfig->getTheme()); $configuration->setCacheDir(sprintf('%s/var/cache', $buildConfig->getCacheDir()));