Comments (5)
I understand it's the decision you've made, but I still think it's the wrong one. It's not just that I wouldn't mind if you installed dependencies I didn't need, it's that I would actually prefer it to the alternative (which is manual dependency management).
However, I also think the better option is to move the validators into components of their own.
On 27 maj 2016 18:47 +0200, [email protected], wrote:
Regardless of whether or not you feel the decision is "correct", it is the decision we've made. Since all validators are opt -in, installing the dependencies required for all validators is a disservice to those using a subset of them. If you're already using Doctrine, you'd likely be upset if this component also installed zend-db!
The other option we have is to move any validators with additional dependencies into their own components, which is something we may do in the future. For now, we are declaring the bare minimum dependencies required to use the component, and marking anything else as a suggestion.
—
You are receiving this because you authored the thread.
Reply to this email directly,view it on GitHub(#83 (comment)), ormute the thread(https://github.com/notifications/unsubscribe/AA9DskBctllybcKqAuhVG4OTe6Z9qOR9ks5qFyAigaJpZM4Ioo_a).
from zend-validator.
Maybe in suggest
section (in composer.json
) should be said that zend-math
component is required by the Csrf validator (as it for other suggestions)
from zend-validator.
However when you are not using Csrf you don't need that dependecy.
We are aware of this kind of issues related with optional dependencies. We have choice to require as less dependencies as we can and delegate to the developer the task of require the optional dependencies he/she needs.
from zend-validator.
I think that is the wrong decision because it defeats the purpose of a dependency manager like composer. If you want people to manage dependencies manually you should probably not have a package.json
at all.
from zend-validator.
Regardless of whether or not you feel the decision is "correct", it is the decision we've made. Since all validators are opt -in, installing the dependencies required for all validators is a disservice to those using a subset of them. If you're already using Doctrine, you'd likely be upset if this component also installed zend-db!
The other option we have is to move any validators with additional dependencies into their own components, which is something we may do in the future. For now, we are declaring the bare minimum dependencies required to use the component, and marking anything else as a suggestion.
from zend-validator.
Related Issues (20)
- Missing support for emojis as valid punycode HOT 1
- ZF3 Using Explode with InArray validator as child breaks validation messages format HOT 1
- EmailAddress - validateInternationalizedLocalPart method optional?
- Valid hostnames are consideres invalid with Umlaut and certain TLDs HOT 1
- Running URI through UriNormalize Filter appends `/` - causes Hostname TLD check to always fail HOT 2
- Method visibility bug HOT 5
- Hostname validator produces notice on empty domainPart HOT 1
- NoRecordExists and RecordExists does not work when exclude paramter is of cass Where HOT 2
- Validator for .DE domains outdated (lack of 'sharp s' support)
- Hostname validation not correct when not checking TLD
- Maybe bug in testMoscowWinterTime
- Zend_Validate_CreditCard return the valid type? HOT 1
- Proposal: Validation for breached passwords HOT 18
- AbstractValidator does not use messageKey when translating messages HOT 5
- cannot assign translator object to validator. HOT 7
- Can not translate messages from the FileUploadFile validator. HOT 4
- update for php 7.2 HOT 1
- Fatal error: Uncaught Error: Class 'Zend\Uri\Uri' not found HOT 1
- Hash and Crc32 validator issue if hash has only digits HOT 3
- container-interop/container-interop is abandoned, replace with psr/container HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-validator.