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] fix handling of empty DI extension configs#27710

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
nicolas-grekas merged 1 commit intosymfony:4.1fromxabbuh:issue-27707
Jun 29, 2018

Conversation

xabbuh
Copy link
Member

QA
Branch?4.1
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#27707
LicenseMIT
Doc PR

@xabbuhxabbuh added this to the4.1 milestoneJun 25, 2018
@xabbuhxabbuh changed the titlefix handling of not processable config[SecurityBundle] fix handling of not processable configJun 25, 2018
@xabbuh
Copy link
MemberAuthor

This will fix the issue reported in#27707. However, I am not sure if it is really a good idea to process all theConfiguration classes that we can reach through extensions. It could trigger the same wrong behaviour in other packages too.

@ro0NL
Copy link
Contributor

lets skip those extensions / apply array_filter here:

if (!$extensioninstanceof ConfigurationExtensionInterface || !$config =$container->getExtensionConfig($name)) {
// this extension has no semantic configuration or was not called
continue;

it only validates env placeholders which are not present in empty configs anyway.

chalasr and xabbuh reacted with thumbs up emoji

@xabbuhxabbuh changed the title[SecurityBundle] fix handling of not processable config[SecurityBundle] fix handling of empty DI extension configsJun 26, 2018
@xabbuh
Copy link
MemberAuthor

@ro0NL done

@chalasrchalasr changed the title[SecurityBundle] fix handling of empty DI extension configs[DependencyInjection] fix handling of empty DI extension configsJun 26, 2018
Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

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

would be even better with a test

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commit05d4bcb intosymfony:4.1Jun 29, 2018
nicolas-grekas added a commit that referenced this pull requestJun 29, 2018
…onfigs (xabbuh)This PR was merged into the 4.1 branch.Discussion----------[DependencyInjection] fix handling of empty DI extension configs| Q             | A| ------------- | ---| Branch?       | 4.1| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#27707| License       | MIT| Doc PR        |Commits-------05d4bcb fix handling of empty DI extension configs
@xabbuhxabbuh deleted the issue-27707 branchJune 29, 2018 19:44
xabbuh added a commit to xabbuh/symfony that referenced this pull requestJul 10, 2018
fabpot added a commit that referenced this pull requestJul 12, 2018
This PR was merged into the 4.1 branch.Discussion----------[DependencyInjection] add missing test for#27710| Q             | A| ------------- | ---| Branch?       | 4.1| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#27710 (review)| License       | MIT| Doc PR        |Commits-------a265caf [DependencyInjection] add missing test for#27710
fabpot added a commit that referenced this pull requestJul 16, 2018
* 4.1:  fixed typo  [FrameworkBundle] fixed brackets position in method calls  Add placeholder support in bootstrap 4 file fields  [Form] Improve rendering of `file` field in bootstrap 4  [Form] Fix PHPDoc for FormConfigBuilder $dataClass argument  [Security] Update user phpdoc on tokens  [WebProfilerBundle] Fixed icon alignment issue using Bootstrap 4.1.2  suppress side effects in 'get' or 'has' methods of NamespacedAttributeBag  [HttpFoundation] reset callback on StreamedResponse when setNotModified() is called  [HttpFoundation] Fixed phpdoc for get method of HeaderBag  fix typo in ContainerBuilder docblock  [Form/Profiler] Massively reducing memory footprint of form profiling pages by removing redundant 'form' variable from view variables.  [Console] correctly return parameter's default value on "--"  [DependencyInjection] add missing test for#27710  [EventDispatcher] Clear orphaned events on TraceableEventDispatcher::reset  Fix serialization of abstract items with groups across multiple entities
@fabpotfabpot mentioned this pull requestJul 23, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@ogizanagiogizanagiogizanagi approved these changes

@chalasrchalasrchalasr approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
4.1
Development

Successfully merging this pull request may close these issues.

6 participants
@xabbuh@ro0NL@nicolas-grekas@ogizanagi@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp