sonata-project / dev-kit

Development kit of the Sonata-Project
https://master-7rqtwti-ptm4dx6rjpjko.eu-5.platformsh.site/
42 stars 42 forks source link

[RFC] Twig namespaced paths in templates #374

Closed fracsi closed 4 years ago

fracsi commented 6 years ago

In symfony-flex the directory structure is a little different than the normal symfony skeleton.

It uses the templates folder in the root directory for the twig templates. You can override third-party bundle templates in templates/bundles/[BUNDLENAME]/, but twig can only find templates if they are referenced with the new namespaced paths. (https://symfony.com/doc/2.8/templating/namespaced_paths.html)

The old syntax that is used by SonataAdmin (e.g.: SonataAdmin::standard_layout), is resolved by the symfony/framework-bundle.

The ideal solution would be to use the new namespace syntax everywhere.

Original issue from SonataAdminBundle: https://github.com/sonata-project/SonataAdminBundle/issues/4761

enleur commented 6 years ago
jordisala1991 commented 6 years ago

It would be nice to know which bundles are missing. I know that ecommerce is missing for sure, probably sandbox too, but there could be more