Update info on Twig namespaces
This updates Twig Namespaces section with more precise information about which bundle templates directory is registered automatically, and which can optionally be added.
In Symfony 6 the default is different. May be we should link to the Symfony Docs instead?
What do you mean? The section on namespaces is identical between 5.4 and 6.1 branches.
I mean https://symfony.com/doc/current/bundles/best_practices.html#directory-structure
In Symfony 6 you can extend from AbstractBundle which returns the root directory of the package in getPath by default.
Will the example on creating a bundle be updated as well?
Yes, I definitely want to update that as well (though not by using AbstractBundle).
How about now, @fritzmg?
Unfortunately there is a conflict with this PR now. The section has moved to https://github.com/contao/docs/blob/main/docs/dev/framework/templates/architecture.md
I rebased and brought my edits to the new location "as is". However, I was not following the core team's work in past months, so I may not be on top of the things with this PR anymore.
Thank you @ameotoko