Skip to content

Commit

Permalink
Add rybakit/twig-deferred-extension to composer.json (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse authored Jun 7, 2024
1 parent 8ebd28f commit be8498f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
},
"require": {
"php": "~8.1.0 || ~8.2.0",
"openspout/openspout": "^4.0",
"doctrine/dbal": "^3.4.2",
"doctrine/migrations": "^3.0.2",
"dragonmantank/cron-expression": "^3.0.2",
"drewm/mailchimp-api": "^2.2",
"guzzlehttp/guzzle": "^7.2",
"knplabs/knp-components": "^4.0",
"openspout/openspout": "^4.0",
"pear/archive_tar": "^1.4.14",
"pimcore/newsletter-bundle": "^1.0",
"pimcore/number-sequence-generator": "^2.0",
Expand All @@ -29,6 +29,7 @@
"pimcore/pimcore": "^11.0",
"pimcore/search-query-parser": "^1.3",
"pimcore/personalization-bundle": "^1.0",
"rybakit/twig-deferred-extension": "^3.0",
"symfony/asset": "^6.2",
"symfony/config": "^6.2",
"symfony/console": "^6.2",
Expand All @@ -44,17 +45,20 @@
"symfony/stopwatch": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"codeception/codeception": "^5.0.3",
"codeception/module-symfony": "^3.1.0",
"codeception/phpunit-wrapper": "^9",
"php-http/guzzle7-adapter": "^0.1.1",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-symfony": "^1.2.14"
"phpstan/phpstan-symfony": "^1.2.14",
"phpunit/phpunit": "^9.5"
},
"conflict": {
"twig/twig": "^3.9.0"
},
"suggest": {
"php-http/httplug-bundle": "^1.20.0",
"php-http/guzzle7-adapter": "^0.1.1"
"php-http/guzzle7-adapter": "^0.1.1",
"php-http/httplug-bundle": "^1.20.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 6 additions & 1 deletion src/Resources/config/services_templating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ services:

CustomerManagementFrameworkBundle\Twig\Extension\CmfUrlUtilsExtension:
autowire: true
tags: [ 'twig.extension' ]
tags: [ 'twig.extension' ]

# 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: ~
4 changes: 2 additions & 2 deletions src/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% endapply %}

{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{{ pimcore_head_link() }}
{% endblock %}
</head>
<body class="sidebar-collapse">
Expand All @@ -35,7 +35,7 @@
{% endapply %}

{% block headscripts deferred %}
{{ pimcore_head_script() }}
{{ pimcore_head_script() }}
{% endblock %}

</body>
Expand Down

0 comments on commit be8498f

Please sign in to comment.