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: ~