From 52475d75238576ed1290d81438b27e8831e38c81 Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Mon, 15 Jul 2024 14:50:04 +0200 Subject: [PATCH] Add rybakit/twig-deferred-extension to composer.json (#576) * Add rybakit/twig-deferred-extension to composer.json * Add Service --- composer.json | 1 + config/services.yaml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1b753164..653d5159 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ "pimcore/ecommerce-framework-bundle": "*", "pimcore/web-to-print-bundle": "*", "pimcore/newsletter-bundle": "*", + "rybakit/twig-deferred-extension": "^3.0", "symfony/runtime": "^6.2", "symfony/intl": "^6.2", "symfony/dotenv": "^6.2", diff --git a/config/services.yaml b/config/services.yaml index 09794e3d..3ab58bf9 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -222,4 +222,9 @@ services: lazy: true arguments: - !service { class: PDO, factory: [ '@database_connection', 'getNativeConnection' ] } - - { lock_mode: 0 } \ No newline at end of file + - { lock_mode: 0 } + + # the deferred extension is needed for placeholder helpers to work + # as otherwise the placeholder block would be rendered before any + # content was added (e.g. headTitle) + Twig\DeferredExtension\DeferredExtension: ~