-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][PropertyInfo] Wire the ConstructorExtractor
class
#50334
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
Conversation
a50e8c9
to
5261db6
Compare
5261db6
to
b68f40e
Compare
b68f40e
to
711cbbd
Compare
da9d4fb
to
03922ec
Compare
03922ec
to
a02c6f1
Compare
a02c6f1
to
796dcc2
Compare
What is the status of this PR ? It would be nice to see this in 7.1. |
796dcc2
to
d2fcfbc
Compare
d2fcfbc
to
c17cfc3
Compare
src/Symfony/Component/PropertyInfo/Extractor/ConstructorArgumentTypeExtractorInterface.php
Show resolved
Hide resolved
What about directly deprecating this option, so that it needs to be set on 8.0? Or defaulting it to true in 8.0? |
c17cfc3
to
31ef132
Compare
I'm ok with whatever is decided. |
->children() | ||
->booleanNode('with_constructor_extractor') | ||
->info('Registers the constructor extractor.') | ||
->defaultFalse() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't have added any defaults here. Indeed, in that way, we could be able to raise a deprecation message in FrameworkExtension
telling that with_constructor_extractor
must be explicitly set, as its default value will change in 8.0
.
If we're doing so, we must update the recipe so that it sets the with_constructor_extractor
value to true
for new 7.3
projects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
15c9261
to
f50586a
Compare
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
f50586a
to
2b392b1
Compare
Thank you @HypeMC. |
…peMC) This PR was merged into the 7.3 branch. Discussion ---------- [PropertyInfo] Move aliases under service definition | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Follow-up to #50334, the aliases are normally defined right after the service. Commits ------- 22feb79 [PropertyInfo] Move aliases under service definition
A sort of followup to #30335.
The original PR removed the wiring to prevent creating a BC break, see #30128 (comment) & #30335 (comment).
This PR proposes adding a new
framework.property_info.with_constructor_extractor
configuration to allow optionally enabling the framework integration. The configuration defaults tofalse
to prevent creating a BC break. Only when it's set totrue
will theConstructorExtractor
be registered in the container.