mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Add support for future Twig Hooks 0.5
This commit is contained in:
parent
809df81c21
commit
9feb115730
4 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue