diff --git a/lib/classes/module/console/fileConfigCheck.class.php b/lib/classes/module/console/fileConfigCheck.class.php index 24abf1a471..5b950bde77 100644 --- a/lib/classes/module/console/fileConfigCheck.class.php +++ b/lib/classes/module/console/fileConfigCheck.class.php @@ -347,7 +347,7 @@ class module_console_fileConfigCheck extends Command if ($service->getType() === 'twig') { - $twig = $service->getService(); + $twig = $service->getDriver(); if (self::PROD === $this->env && $twig->isDebug()) { diff --git a/lib/classes/module/console/fileEnsureProductionSetting.class.php b/lib/classes/module/console/fileEnsureProductionSetting.class.php index f849e54cf3..9894f2b7e2 100644 --- a/lib/classes/module/console/fileEnsureProductionSetting.class.php +++ b/lib/classes/module/console/fileEnsureProductionSetting.class.php @@ -376,7 +376,7 @@ class module_console_fileEnsureProductionSetting extends Command if ($service->getType() === 'twig') { - $twig = $service->getService(); + $twig = $service->getDriver(); if ($twig->isDebug()) {