Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Added ValidatorChain::attach() and ValidatorChain::attachByName() to keep consistent with FilterChain #3200

Closed
wants to merge 1 commit into from

Conversation

RalfEggert
Copy link
Contributor

Added ValidatorChain::attach() and ValidatorChain::attachByName() to keep consistent with FilterChain

ValidatorChain::addValidator() proxies to ValidatorChain::attach()
ValidatorChain::addByName() proxies to ValidatorChain::attachByName()

…keep consistent with FilterChain

ValidatorChain::addValidator() proxies to ValidatorChain::attach()
ValidatorChain::addByName() proxies to ValidatorChain::attachByName()
@@ -107,6 +107,18 @@ public function addValidator(ValidatorInterface $validator, $breakChainOnFailure
}

/**
* Proxy to attach() to keep BC
*
* @param ValidatorInterface $validator
Copy link
Member

Choose a reason for hiding this comment

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

Should add an @deprecated annotation, pointing to the new method.

@ghost ghost assigned weierophinney Dec 11, 2012
weierophinney added a commit that referenced this pull request Dec 11, 2012
weierophinney added a commit that referenced this pull request Dec 11, 2012
- s/addValidator/attach/
- s/addByName/attachByName/
weierophinney added a commit to zendframework/zend-mail that referenced this pull request May 14, 2015
…ator chain methods

- s/addValidator/attach/
- s/addByName/attachByName/
weierophinney added a commit to zendframework/zend-mail that referenced this pull request May 14, 2015
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
…ator chain methods

- s/addValidator/attach/
- s/addByName/attachByName/
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
…ator chain methods

- s/addValidator/attach/
- s/addByName/attachByName/
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants