Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Removed @internal from Composite #37558

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
merged 1 commit into from
Jul 23, 2020

Conversation

vudaltsov
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #37348
License MIT

I think that Composite should not be @internal. Even with the new @Compound constraint Composite is still useful for complex custom validators.

For example, I have @ExcelColumn(string $column, array $constraints) that checks that all cells in a column of an uploaded Excel file are valid. This cannot be expressed with @Compound.

@nicolas-grekas
Copy link
Member

/cc @ogizanagi maybe?

@ogizanagi
Copy link
Contributor

I don't have arguments against.
This comment let me think this was at least considered a valid use-case despite not being the main motivation.

What do you think @xabbuh?
At least, if we truly want it to be internal, we should remove this comment as well.

@xabbuh
Copy link
Member

xabbuh commented Jul 16, 2020

works for me

Copy link
Contributor

@ogizanagi ogizanagi left a comment

Choose a reason for hiding this comment

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

What about targeting 5.1?

@fabpot fabpot changed the base branch from master to 5.1 July 23, 2020 06:35
@fabpot fabpot force-pushed the validator-composite-remove-internal branch from f180fd3 to 8958ce1 Compare July 23, 2020 06:35
@fabpot
Copy link
Member

fabpot commented Jul 23, 2020

Thank you @vudaltsov.

@fabpot fabpot merged commit ab29e07 into symfony:5.1 Jul 23, 2020
@vudaltsov vudaltsov deleted the validator-composite-remove-internal branch July 23, 2020 11:09
@fabpot fabpot mentioned this pull request Jul 24, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 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.

Composite probably should not be @internal
6 participants