Skip to content

Commit

Permalink
Add rybakit/twig-deferred-extension to composer.json (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse authored Jun 28, 2024
1 parent f1b8a2e commit a7280b0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
18 changes: 11 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ~
2 changes: 1 addition & 1 deletion src/Resources/views/voucher/voucher_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% endapply %}

{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{{ pimcore_head_link() }}
{% endblock %}
</head>
<body>
Expand Down

0 comments on commit a7280b0

Please sign in to comment.