-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically load the services.yml file if it exists #810
Conversation
Same goes for the routing.yml |
The routing file is already loaded automatically. 😉 contao/manager-bundle/src/Routing/RouteLoader.php Lines 70 to 77 in 045cb20
|
Right, I forgot 🙃 |
I'm not sure I like this idea. We should discuss the whole file loading if we want to add this. In Symfony, all files are automatically loaded, not just the |
Are you sure that Symfony autoloads everything? Because |
I'm pretty sure it loads everything in |
Yes, it loads everything in |
Full ACK. 👍 |
There is no |
|
Yes but you could put your own bundle configurations there. Supporting the But loading the |
My "Full ACK" meant "do not load everything in the root /config folder", because Symfony does not, either. |
Maybe we should consider having a toggle somewhere.
|
What happens in installations that already have a services.yml which gets loaded via the config.yml. Would they overwrite each other with the same values and therefore don’t cause an issue? |
Yes, they would. Just like the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please mark this up for discussion? I don't like the idea of just loading additional files "because Symfony does that". If we load additional files automatically to somewhat follow Symfony Flex, then we should rething the whole thing (like loading everything in prod
and dev
folders` etc.)
You are talking about two different things here. This PR simply adds autoloading for the |
It's not two different things. It's "do we keep our approach" or "do we support things like flex does". Currently you're mixing the two. |
In Symfony 4, the
services.yml
file will be loaded automatically, therefore we should do it, too.