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

[FrameworkBundle] Fix framework bundle lock configuration not working as expected#31198

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:3.4fromHypeMC:fix-framework-bundle-lock-configuration-normalization
Sep 26, 2019
Merged

[FrameworkBundle] Fix framework bundle lock configuration not working as expected#31198

nicolas-grekas merged 1 commit intosymfony:3.4fromHypeMC:fix-framework-bundle-lock-configuration-normalization
Sep 26, 2019

Conversation

@HypeMC
Copy link
Member

@HypeMCHypeMC commentedApr 22, 2019
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#31197
LicenseMIT
Doc PRsymfony/symfony-docs#11465 &symfony/symfony-docs#11466

Thisfixes#31197 and makes the lock configuration work with installations that are not full stack ones and configurations that use xml files.

X-Coder264 reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

ping@jderusse

Copy link
Member

@jderussejderusse left a comment

Choose a reason for hiding this comment

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

I'm not an expert on symfony configuration, but it's look like we've re-implementedfixXmlConfig +useAttributeAsKey('name') and got the feeling that business logic is dupliacted in "resource" and "resources".

Side appart that comment, I'm 👍 with the test suite: which is the expected behavior.

@HypeMC
Copy link
MemberAuthor

@jderusse Yep, I agree with you, this is pretty much a re-implementation of fixXmlConfig + useAttributeAsKey('name'), however because of the beforeNormalization rules that were here before, I haven't been able to find a better solution. If anyone has any ideas please, let me know. Regardless, the fact remains that currently xml configurations don't work at all.

@stof
Copy link
Member

I would rather add a check for the singularresource key in the existing normalization condition rather than reimplementing all other features.

@HypeMC
Copy link
MemberAuthor

@stof Tried your approach & you were right, the end result is now a bit cleanerHypeMC@662d394 . Not sure whether to update this PR since it's already approved or to open a new one.

@nicolas-grekas
Copy link
Member

Please update!

@HypeMC
Copy link
MemberAuthor

@nicolas-grekas Done.

->then(function ($v) {return$v + ['enabled' =>true]; })
->end()
->beforeNormalization()
->ifTrue(function ($v) {return\is_array($v) && !isset($v['resources']) && !isset($v['resource']); })

Choose a reason for hiding this comment

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

&& !isset($v['resources']) is duplicated right?

Choose a reason for hiding this comment

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

oh no, extras...

@nicolas-grekas
Copy link
Member

Thank you@HypeMC.

HypeMC reacted with thumbs up emoji

nicolas-grekas added a commit that referenced this pull requestSep 26, 2019
…not working as expected (HypeMC)This PR was squashed before being merged into the 3.4 branch (closes#31198).Discussion----------[FrameworkBundle] Fix framework bundle lock configuration not working as expected| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#31197| License       | MIT| Doc PR        |symfony/symfony-docs#11465 &symfony/symfony-docs#11466Thisfixes#31197 and makes the lock configuration work with installations that are not full stack ones and configurations that use xml files.Commits-------c7af2df [FrameworkBundle] Fix framework bundle lock configuration not working as expected
@nicolas-grekasnicolas-grekas merged commitc7af2df intosymfony:3.4Sep 26, 2019
This was referencedOct 7, 2019
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

@jderussejderussejderusse left review comments

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

7 participants

@HypeMC@nicolas-grekas@stof@javiereguiluz@jderusse@Simperfit@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp