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 |
- Added the
Shopware\Core\Framework\Adapter\AdapterException::invalidTemplateSyntax
function with error codeFRAMEWORK__INVALID_TEMPLATE_SYNTAX
- This error code uses the error log level
notice
inCore/Framework/Resources/config/packages/shopware.yaml
that the exception will not be written to the system log by default
- This error code uses the error log level
- Changed the
Shopware\Core\Framework\Adapter\Twig\StringTemplateRenderer::render
function which throws now theAdapterException
with error codeFRAMEWORK__INVALID_TEMPLATE_SYNTAX
due invalid user input in twig templates instead ofShopware\Core\Framework\Adapter\Twig\Exception\StringTemplateRenderingException
StringTemplateRenderingException
will still be thrown dueTwig\Error\LoaderError
andTwig\Error\RuntimeError
exceptions