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
[FrameworkBundle][Validator] Deprecate annotation occurrences #51425
[FrameworkBundle][Validator] Deprecate annotation occurrences #51425
Conversation
606ec10
to
3d5557b
Compare
This should be in the same PR than #51426 instead of being a separate PR IMO, as this is about the FrameworkBundle semantic configuration related to the same change. |
97dc60e
to
0bd8e1f
Compare
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Mapping/Loader/AttributeLoader.php
Outdated
Show resolved
Hide resolved
89a4e3c
to
1723d35
Compare
1723d35
to
0a1cb09
Compare
0a1cb09
to
c315bd5
Compare
c315bd5
to
2e1e805
Compare
Addressed your comments @derrabus, thank you! |
Thank you @alexandre-daubois. |
Working on the clean-up 👍 |
…to AnnotationLoader (derrabus) This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Un-deprecate passing an annotation reader to AnnotationLoader | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Follow-up to #51425 | License | MIT | Doc PR | N/A #51425 deprecated the `AnnotationLoader` class and its replacement already does not accept an annotation reader anymore. Thus, the deprecation of the constructor parameter is redundant, which is why I propose to take it back. cc `@alexandre`-daubois Commits ------- 4fa1d32 [Validator] Un-deprecate passing an annotation reader to AnnotationLoader
…ns (alexandre-daubois) This PR was merged into the 7.0 branch. Discussion ---------- [FrameworkBundle][Validator] Remove remaining deprecations | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | - | License | MIT | Doc PR | symfony/symfony-docs#18781 Follow-up of #51425 Commits ------- 6e8cab7 [FrameworkBundle][Validator] Remove remaining deprecations
see #52287 |
Thanks! |
framework.validation.enable_annotations
in favor offramework.validation.enable_attributes
framework.serializer.enable_annotations
in favor of useframework.serializer.enable_attributes
ValidatorBuilder::enableAnnotationMapping()
in favor ofValidatorBuilder::enableAttributeMapping()
ValidatorBuilder::disableAnnotationMapping()
in favor ofValidatorBuilder::disableAttributeMapping()
AnnotationLoader
in favor ofAttributeLoader