-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Provide a BC layer for files in "app/config/" referenced by PluginSkeleton #9672
Conversation
app/config/parameters.yml.dist
Outdated
@@ -1,24 +0,0 @@ | |||
# This file is auto-generated during the composer install |
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.
This file is not referenced by neither Sylius-Standard nor PluginSkeleton.
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.
Ah, we still need it here, it is being removed in #9665.
|
||
declare(strict_types=1); | ||
|
||
@trigger_error('Importing files from Sylius/Sylius\'s "app/config" directory is deprecated since Sylius 1.3.', \E_USER_DEPRECATED); |
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.
Deprecating YAML files is kinda weird 🎉
500fd62
to
96bbbc9
Compare
I think this is exactly why these files should be removed from Sylius/Sylius altogether. They should only be kept for BC. But moving forward, application-related configuration must not be in Sylius/Sylius. |
Thanks Kamil! |
@teohhanhui I'm trying to solve that by making Sylius-Standard a part of Sylius/Sylius (which is subtree split back into Sylius-Standard). This way we can run tests on this repo while having one less place with configuration. |
Yes, make them part of the application, not part of Sylius. Sylius-Standard should be treated purely as a distribution, aka recommended scaffolding / project template. No BC guarantees. |
Files
app/config/routing.yml
,app/config/routing_dev.yml
andapp/config/security.yml
are referenced in PluginSkeleton. This PR provides a backwards compatibility layer for them.