Skip to content

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