Closed arjanfrans closed 3 years ago
At least for the error templates yes.
As a workaround I manually configured the ShopBundle
namespace in the twig config:
twig:
paths:
'%kernel.project_dir%/templates': ~
'%kernel.project_dir%/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views': 'SyliusShop'
And the define your own templates?
No, I didn't define my own templates. Symfony doesn't automatically fin the SyliusShop
twig namespace, because the ShopBundle
is not active. However, it is still installed as a part of the core installation. So I just manually configure the namespace here.
Ah okay then I will add this to the documentation as a step during installation.
@mamazu Thanks!
The better solution would be to fix this in the core bundle, I created an issue there. See https://github.com/Sylius/Sylius/issues/11918
Thanks for your help.
Hey Arjan,
thanks for reporting. We should fix it in the core library 👍
Fixed already in #11958. Will be published with the next patch release
The web profiler breaks after I replaced the ShopBundle with the ShopApiBundle.
It seems that the CoreBundle depends on a template from the ShopBundle.