-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Allow .yaml file extension everywhere #23207
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
[FrameworkBundle] Allow .yaml file extension everywhere #23207
Conversation
ogizanagi
commented
Jun 16, 2017
Q | A |
---|---|
Branch? | 3.4 |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #23205 |
License | MIT |
Doc PR | N/A |
if ($container->fileExists($file = $dirname.'/Resources/config/validation.yml', false)) { | ||
if ( | ||
$container->fileExists($file = $dirname.'/Resources/config/validation.yml', false) || | ||
$container->fileExists($file = $dirname.'/Resources/config/validation.yaml', false) |
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.
what if both exists ?
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.
The .yml
file will take precedence (actually it'll probably better to do the reverse).
Do you think it's an issue?
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.
Having .yml first is more BC, so LGTM
Thank you @ogizanagi. |
…e (ogizanagi) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Allow .yaml file extension everywhere | Q | A | ------------- | --- | Branch? | 3.4 <!-- see comment below --> | Bug fix? | no | New feature? | yes <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #23205 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Commits ------- 2940bb0 [FrameworkBundle] Allow .yaml file extension everywhere