Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 1.01 KB

2023-11-28-stringtemplaterenderer-throws-exception-due-invalid-template-syntax.md

File metadata and controls

12 lines (12 loc) · 1.01 KB
title issue author author_email author_github
StringTemplateRenderer throws AdapterException with error code "FRAMEWORK__INVALID_TEMPLATE_SYNTAX" due invalid template syntax
NEXT-30983
Krzykawski
Krzykawski

Core

  • Added the Shopware\Core\Framework\Adapter\AdapterException::invalidTemplateSyntax function with error code FRAMEWORK__INVALID_TEMPLATE_SYNTAX
    • This error code uses the error log level notice in Core/Framework/Resources/config/packages/shopware.yaml that the exception will not be written to the system log by default
  • Changed the Shopware\Core\Framework\Adapter\Twig\StringTemplateRenderer::render function which throws now the AdapterException with error code FRAMEWORK__INVALID_TEMPLATE_SYNTAX due invalid user input in twig templates instead of Shopware\Core\Framework\Adapter\Twig\Exception\StringTemplateRenderingException
    • StringTemplateRenderingException will still be thrown due Twig\Error\LoaderError and Twig\Error\RuntimeError exceptions