Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DependencyInjection] Added optionignore_errors: not_found for imported config files#11647

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@pulzarraider
Copy link
Contributor

@pulzarraiderpulzarraider commentedJun 3, 2019
edited
Loading

Related merge request:symfony/symfony#31310

@javiereguiluzjaviereguiluz added Config Waiting Code MergeDocs for features pending to be merged labelsJun 3, 2019
@OskarStarkOskarStark changed the base branch frommaster to4.4June 3, 2019 06:41
@OskarStarkOskarStark added this to the4.4 milestoneJun 3, 2019
@nicolas-grekasnicolas-grekas changed the title[Configuration] Add documentation aboutignore_not_found option.[DependencyInjection] Added optionignore_errors: not_found for imported config filesNov 7, 2019
@nicolas-grekas
Copy link
Member

nicolas-grekas commentedNov 7, 2019
edited
Loading

Should be reviewed after the changes done tosymfony/symfony#31310

@pulzarraiderpulzarraiderforce-pushed theconfig_ignore_not_found_docs branch fromdb7c598 tof6de406CompareNovember 8, 2019 07:36
nicolas-grekas added a commit to symfony/symfony that referenced this pull requestNov 8, 2019
…_found` for imported config files (pulzarraider)This PR was merged into the 4.4 branch.Discussion----------[DependencyInjection] Added option `ignore_errors: not_found` for imported config files| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        |symfony/symfony-docs#11647If someone want to add optional config file. The only available choice was to add `ignore_errors: true` optione.g.```imports:    - { resource: parameters.yml, ignore_errors: true }```But this will hide all errors in imported file. We ran in many situations that broke our Symfony applications because we had a typo in this imported files.This PR introduce new possible value `not_found` for `ignore_errors` option. It can be used for optional config files like the `ignore_errors: true`, but it will ignore only the file non-existence, not the possible syntax errors inside.Usage:```imports:    - { resource: parameters.yml, ignore_errors: not_found}```Commits-------e0ee01c [DependencyInjection] Added option `ignore_errors: not_found` while importing config files
symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull requestNov 8, 2019
…_found` for imported config files (pulzarraider)This PR was merged into the 4.4 branch.Discussion----------[DependencyInjection] Added option `ignore_errors: not_found` for imported config files| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        |symfony/symfony-docs#11647If someone want to add optional config file. The only available choice was to add `ignore_errors: true` optione.g.```imports:    - { resource: parameters.yml, ignore_errors: true }```But this will hide all errors in imported file. We ran in many situations that broke our Symfony applications because we had a typo in this imported files.This PR introduce new possible value `not_found` for `ignore_errors` option. It can be used for optional config files like the `ignore_errors: true`, but it will ignore only the file non-existence, not the possible syntax errors inside.Usage:```imports:    - { resource: parameters.yml, ignore_errors: not_found}```Commits-------e0ee01c10d [DependencyInjection] Added option `ignore_errors: not_found` while importing config files
symfony-splitter pushed a commit to symfony/config that referenced this pull requestNov 8, 2019
…_found` for imported config files (pulzarraider)This PR was merged into the 4.4 branch.Discussion----------[DependencyInjection] Added option `ignore_errors: not_found` for imported config files| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        |symfony/symfony-docs#11647If someone want to add optional config file. The only available choice was to add `ignore_errors: true` optione.g.```imports:    - { resource: parameters.yml, ignore_errors: true }```But this will hide all errors in imported file. We ran in many situations that broke our Symfony applications because we had a typo in this imported files.This PR introduce new possible value `not_found` for `ignore_errors` option. It can be used for optional config files like the `ignore_errors: true`, but it will ignore only the file non-existence, not the possible syntax errors inside.Usage:```imports:    - { resource: parameters.yml, ignore_errors: not_found}```Commits-------e0ee01c10d [DependencyInjection] Added option `ignore_errors: not_found` while importing config files
@OskarStarkOskarStark removed the Waiting Code MergeDocs for features pending to be merged labelNov 8, 2019
@wouterjwouterjforce-pushed theconfig_ignore_not_found_docs branch fromf6de406 to0a6873dCompareOctober 4, 2020 10:53
@wouterj
Copy link
Member

Thanks@pulzarraider! During the merge, I've slightly modified the comments to make them a bit shorter (to avoid horizontal scrolling).

@wouterjwouterj merged commitc62f542 intosymfony:4.4Oct 4, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj approved these changes

+1 more reviewer

@maxheliasmaxheliasmaxhelias approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

7 participants

@pulzarraider@nicolas-grekas@wouterj@maxhelias@javiereguiluz@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp