This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Priority system for validators #6386
Comments
Ok for a PR ? |
@weierophinney why would the order of validators matter? Unless we have a concept of "break chain on success", I see little use-cases for this. |
Nvm, I see some value in configurability, though a "break chain on success" would be totally awesome :-) |
👍 |
Ocramius
pushed a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
that referenced
this issue
Nov 19, 2014
Ocramius
added a commit
to Ocramius/zf2
that referenced
this issue
Nov 22, 2014
…lidatorChain#merge()` method, which presents internal type mismatches
Ocramius
added a commit
to Ocramius/zf2
that referenced
this issue
Nov 22, 2014
…ly to `ValidatorChain#attach()` by `ValidatorChain#merge()`
This was referenced Nov 22, 2014
Ocramius
added a commit
to Ocramius/zf2
that referenced
this issue
Nov 22, 2014
Ocramius
added a commit
to Ocramius/zf2
that referenced
this issue
Nov 22, 2014
…d, as the validator chain is now deep-cloned
Ocramius
pushed a commit
to zendframework/zf2-documentation
that referenced
this issue
Nov 26, 2014
samsonasik
pushed a commit
to samsonasik/zf2-documentation
that referenced
this issue
Mar 31, 2015
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…alidator chain should reject invalid callbacks
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…inor cleanups, simplifying checks around `$callback` validity
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…dding `@group` annotations for newly introduced tests
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…nlining `$this->attach()` and `$this->plugin()` calls
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…everting minor bc-break (`attach` method should keep a compatible signature)
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…emoving useless test that checks against an invalid type-hint usage
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…everting unrelated test changes
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…zendframework#6496-support-validator-priority' into develop Close zendframework/zendframework#6386 Close zendframework/zendframework#6496
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…dding test for uncovered `ValidatorChain#merge()` method, which presents internal type mismatches
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…ixing values passed internally to `ValidatorChain#attach()` by `ValidatorChain#merge()`
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…ValidatorChain` must be cloneable
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…ValidatorChain` can be cloned, as the validator chain is now deep-cloned
gianarb
pushed a commit
to zendframework/zend-validator
that referenced
this issue
May 15, 2015
…fix/zendframework/zendframework#6386-zendframework/zendframework#6496-validator-chain-merge-type-mismatch Hotfix: zendframework/zendframework#6386 zendframework/zendframework#6496 validator chain merge type mismatch
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
Zend\Filter\FilterChain
class allows you to prioritize filters, and usesZend\Stdlib\PriorityQueue
internally.Zend\Validator\ValidatorChain
should do this as well. Theprepend*()
methods would check for the highest priority value, and add one to it, whileattach*()
would assume default priority unless a priority value is provided.The text was updated successfully, but these errors were encountered: