marellocommerce / marello

Marello
Other
51 stars 18 forks source link

Remove namespaced twig paths with colons #66

Open clicktrend opened 3 years ago

clicktrend commented 3 years ago

It's not possible to override templates if you use twig paths with colons. This is deprecated (Symfony Doc).

In the past, Symfony used a different syntax to refer to templates. This format, which uses colons (:) to 
separate each template path section, is less consistent and has worse performance than the Twig syntax.

Please change "Template" annotations in all controllers. For instance have a look at product view action Link

Change

@Config\Template("MarelloProductBundle:Product:view.html.twig")

to

@Config\Template("@MarelloProduct/Product/view.html.twig")

Thanks