diff --git a/composer.json b/composer.json index 66949e17..17bb87a5 100644 --- a/composer.json +++ b/composer.json @@ -16,22 +16,26 @@ "prefer-stable": true, "require": { "php": "~8.1.0 || ~8.2.0", - "pimcore/pimcore": "^11.0.7", - "pimcore/personalization-bundle": "^1.0", - "pimcore/google-marketing-bundle": "^1.0", "knplabs/knp-paginator-bundle": "^6.0.0", - "symfony/webpack-encore-bundle": "^1.13.2", - "symfony/form": "^6.2" + "pimcore/google-marketing-bundle": "^1.0", + "pimcore/personalization-bundle": "^1.0", + "pimcore/pimcore": "^11.0.7", + "rybakit/twig-deferred-extension": "^3.0", + "symfony/form": "^6.2", + "symfony/webpack-encore-bundle": "^1.13.2" }, "require-dev": { - "phpstan/phpstan": "^1.10.30", - "phpstan/phpstan-symfony": "^1.3.2", "codeception/codeception": "^5.0.11", "codeception/module-asserts": "^2.0.1", "codeception/module-symfony":"^3.1.1", "elasticsearch/elasticsearch": "^8.0", + "phpstan/phpstan": "^1.10.30", + "phpstan/phpstan-symfony": "^1.3.2", "pimcore/elasticsearch-client": "^1.0.0" }, + "conflict": { + "twig/twig": "^3.9.0" + }, "suggest": { "elasticsearch/elasticsearch": "Required for Elastic Search service", "webmozarts/console-parallelization": "Required for parallelization of console commands" diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index e3adfda1..a20cefe7 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -23,3 +23,7 @@ services: public: true tags: ['controller.service_arguments'] + # 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: ~ diff --git a/src/Resources/views/voucher/voucher_layout.html.twig b/src/Resources/views/voucher/voucher_layout.html.twig index 4f5c6d84..86eed18c 100644 --- a/src/Resources/views/voucher/voucher_layout.html.twig +++ b/src/Resources/views/voucher/voucher_layout.html.twig @@ -20,7 +20,7 @@ {% endapply %} {% block head_stylesheets deferred %} - {{ pimcore_head_link() }} + {{ pimcore_head_link() }} {% endblock %}