You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because when we require twig/extra-bundle we have this error :
Unable to register extension "Twig\Extra\Intl\IntlExtension" as it is already registered.
It is simple to correct by removing the line in config/packages/twig.yaml:
Twig\Extra\Intl\IntlExtension: ~
But in context of Sylius Plugin it is complicated to say "Ok we will break your Sylius install, just change this file and it will be fine".
The issue could be solved by removing this line in YAML and add in composer json :
Because when we require
twig/extra-bundle
we have this error :Unable to register extension "Twig\Extra\Intl\IntlExtension" as it is already registered.
It is simple to correct by removing the line in
config/packages/twig.yaml
:But in context of Sylius Plugin it is complicated to say "Ok we will break your Sylius install, just change this file and it will be fine".
The issue could be solved by removing this line in YAML and add in composer json :
What do you think ?
Your solution works for Intl because the setup is simple :
https://twig.symfony.com/doc/3.x/functions/country_timezones.html
But other extension needs runtime loader like this one :
https://twig.symfony.com/doc/3.x/filters/markdown_to_html.html
The text was updated successfully, but these errors were encountered: