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.
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 intemplates/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