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

Appearance settings

[Validator] Allow load mappings from attributes without doctrine/annotations #39032

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

Merged

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Nov 7, 2020

Q A
Branch? 5.2
Bug fix? no
New feature? yes
Deprecations? yes
Tickets #38096
License MIT
Doc PR TODO

Follows #38309.

Currently, we cannot enable constraint mapping from attributes without having doctrine/annotations installed. Lifting that limitation is a bit tricky because ValidatorBuilder::enableAnnotationMapping() creates an annotation reader if you don't pass one. This PR aims at deprecating this behavior.

I know it's a bit late for such a change in 5.2 and I should have seen earlier that this part was missing. 😓 Since I don't expect people to go all-in on attributes on day one, it's probably okay to postpone this change to 5.3.

@derrabus derrabus added this to the 5.2 milestone Nov 7, 2020
@derrabus derrabus force-pushed the improvement/validator-without-doctrine branch from 6d90b6d to 3ba49bf Compare November 7, 2020 21:22
@derrabus derrabus force-pushed the improvement/validator-without-doctrine branch from 3ba49bf to 441c806 Compare November 7, 2020 21:49
@fabpot
Copy link
Member

fabpot commented Nov 8, 2020

Thank you @derrabus.

@fabpot fabpot merged commit 77c82cf into symfony:5.x Nov 8, 2020
@derrabus derrabus deleted the improvement/validator-without-doctrine branch November 9, 2020 10:14
@fabpot fabpot mentioned this pull request Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.