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

Fix the configurability of CoreExtension deps in standalone usage#30979

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

@stof
Copy link
Member

@stofstof commentedApr 7, 2019

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?not yet, but will allow fixing them
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

When using the Forms entrypoint to configure the component, there was no chance to configure dependencies of the CoreExtension, as the one registered without argument was first and would win.
The builder now delays the prepending of the CoreExtension to do it only if the CoreExtension is not registered explicitly.

We discovered that when trying to fix tests for the FileType, where we wanted to pass a Translator to it.

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.

Thanks!

/**
* @param bool $forceCoreExtension
*/
publicfunction__construct($forceCoreExtension =false)
Copy link
Member

@chalasrchalasrApr 7, 2019
edited
Loading

Choose a reason for hiding this comment

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

phpdoc should be replaced by a typehint when merging up to master

sstok and xabbuh reacted with thumbs up emoji
@stofstofforce-pushed thefix_standalone_form_config branch fromf882444 to42111f0CompareApril 7, 2019 13:11
@nicolas-grekasnicolas-grekasforce-pushed thefix_standalone_form_config branch from42111f0 to934118bCompareApril 7, 2019 13:12
@nicolas-grekas
Copy link
Member

Thank you@stof.

@nicolas-grekasnicolas-grekas merged commit934118b intosymfony:3.4Apr 7, 2019
nicolas-grekas added a commit that referenced this pull requestApr 7, 2019
…e usage (stof)This PR was squashed before being merged into the 3.4 branch (closes#30979).Discussion----------Fix the configurability of CoreExtension deps in standalone usage| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | not yet, but will allow fixing them| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aWhen using the Forms entrypoint to configure the component, there was no chance to configure dependencies of the CoreExtension, as the one registered without argument was first and would win.The builder now delays the prepending of the CoreExtension to do it only if the CoreExtension is not registered explicitly.We discovered that when trying to fix tests for the FileType, where we wanted to pass a Translator to it.Commits-------934118b Fix the configurability of CoreExtension deps in standalone usage
@stofstof deleted the fix_standalone_form_config branchApril 8, 2019 07:53
This was referencedApr 16, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@stof@nicolas-grekas@xabbuh@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp