Skip to content

[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

Merged
merged 1 commit into from
Jun 16, 2017
Merged

[FrameworkBundle] Allow .yaml file extension everywhere #23207

merged 1 commit into from
Jun 16, 2017

Conversation

ogizanagi
Copy link
Contributor

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if both exists ?

Copy link
Contributor Author

@ogizanagi ogizanagi Jun 16, 2017

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?

@ogizanagi ogizanagi changed the title [FrameworkBundle] Allow yaml extensions everywhere [FrameworkBundle] Allow .yaml file extension everywhere Jun 16, 2017
Copy link
Member

@fabpot fabpot left a 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

@fabpot
Copy link
Member

fabpot commented Jun 16, 2017

Thank you @ogizanagi.

@fabpot fabpot merged commit 2940bb0 into symfony:3.4 Jun 16, 2017
fabpot added a commit that referenced this pull request Jun 16, 2017
…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
@ogizanagi ogizanagi deleted the feature/mapping_support_yaml_ext branch June 16, 2017 19:00
This was referenced Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants