Closed sheeep closed 6 years ago
According to the Symfony best practices, you are not supposed to use a src/(AppBundle)/Resources
folder but only the app/Resources
folder:
https://symfony.com/doc/3.4/best_practices/templates.html#template-locations
👍 You're right. Sorry. Same goes for DCA-Configurations I guess?
// src/Resources/contao/library/Contao/Database/Installer.php
$files = \System::getContainer()->get('contao.resource_finder')->findIn('dca')->depth(0)->files()->name('*.php');
As briefly discussed, this is the best option since Symfony 4 does not have an app
folder anymore.
Thank you @sheeep.
I don't agree with this, why are the files not in the config folder? Or, following the concept of templates and config in root, why not a contao
folder in the root? There is no Resources
folder supposed to be in the src
dir afaik?
Good find. 👍
Using Symfony Flex you do not have an AppBundle anymore. Therefore it is impossible to load (for example) templates from
src/Resource/contao
. These changes will add thesrc/Resource/contao
directory hard-coded to theAddResourcePathsPass
, likeapp/Resource/contao
is already.