Add support for future Twig Hooks 0.5

This commit is contained in:
Loïc Frémont 2024-10-28 16:00:45 +01:00 committed by Grzegorz Sadowski
parent 809df81c21
commit 9feb115730
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
4 changed files with 4 additions and 4 deletions

View file

@ -85,7 +85,7 @@
"sylius/resource-bundle": "^1.12",
"sylius/theme-bundle": "^2.4",
"sylius/twig-extra": "^0.4",
"sylius/twig-hooks": "^0.4",
"sylius/twig-hooks": "dev-main",
"symfony/asset": "^6.4 || ^7.1",
"symfony/cache-contracts": "^3.5",
"symfony/clock": "^6.4 || ^7.1",

View file

@ -36,7 +36,7 @@
"sylius/core-bundle": "^2.0",
"sylius/payum-bundle": "^2.0",
"sylius/ui-bundle": "^2.0",
"sylius/twig-hooks": "^0.4",
"sylius/twig-hooks": "dev-main",
"symfony/framework-bundle": "^6.4.1 || ^7.1",
"symfony/stimulus-bundle": "^2.20",
"symfony/ux-autocomplete": "^2.20",

View file

@ -29,7 +29,7 @@
"php": "^8.2",
"sylius/core-bundle": "^2.0",
"sylius/payum-bundle": "^2.0",
"sylius/twig-hooks": "^0.4",
"sylius/twig-hooks": "dev-main",
"sylius/ui-bundle": "^2.0",
"sylius/theme-bundle": "^2.4",
"symfony/framework-bundle": "^6.4.1 || ^7.1",

View file

@ -2,4 +2,4 @@
{% set form = hookable_metadata.context.form %}
{% set field = hookable_metadata.configuration.field %}
{% hook 'address' with { _prefixes: prefixes, 'form': attribute(form, field) } %}
{% hook 'address' with { _prefixes: prefixes, 'form': attribute(form, field) } only %}