From d97cadf38d6d39e3d5596feacfe6fefe55ae29b4 Mon Sep 17 00:00:00 2001 From: Marc Wensauer Date: Thu, 9 Nov 2023 10:34:25 +0100 Subject: [PATCH] Update add-dynamic-content-via-ajax-calls.md The twig service will be private with upcoming Symfony 6.0. To resolve this deprecation, a new method setTwig was added to the StorefrontController. All controllers which extends from StorefrontController need to call this method in the dependency injection definition file (services.xml) to set the Twig instance. The controllers will work like before until the Symfony 6.0 update will be done, but they will create a deprecation message on each usage. Below is an example how to add a method call for the service using the XML definition. --- .../plugins/storefront/add-dynamic-content-via-ajax-calls.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guides/plugins/plugins/storefront/add-dynamic-content-via-ajax-calls.md b/guides/plugins/plugins/storefront/add-dynamic-content-via-ajax-calls.md index 2fca0fb49..7a40ab0cd 100644 --- a/guides/plugins/plugins/storefront/add-dynamic-content-via-ajax-calls.md +++ b/guides/plugins/plugins/storefront/add-dynamic-content-via-ajax-calls.md @@ -63,6 +63,9 @@ The following `services.xml` and `routes.xml` are identical as in the before men + + +