Skip to content
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

Rules provider #115

Merged
merged 7 commits into from Feb 19, 2021
Merged

Rules provider #115

merged 7 commits into from Feb 19, 2021

Conversation

xepozz
Copy link
Contributor

@xepozz xepozz commented Feb 8, 2021

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

It adds such of features:

  1. Validated object can provided validation rules for itself (e.g. forms) as first and one argument for ValidatorInterface.
    $validator->validate($object) instead of $validator->validate($object, $object->getRules())
  2. Delegating validation post-processing to object over public method processValidationResult

@xepozz xepozz requested a review from a team February 8, 2021 19:16
@xepozz xepozz added the status:code review The pull request needs review. label Feb 8, 2021
@samdark samdark merged commit 5f41a85 into master Feb 19, 2021
@samdark samdark deleted the rules-provider branch February 19, 2021 07:33
@samdark
Copy link
Member

samdark commented Feb 19, 2021

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants