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

Zend\Math is required by Zend\Validator\Csrf but packae is not required #147

Closed
heiglandreas opened this issue Feb 18, 2017 · 4 comments
Closed

Comments

@heiglandreas
Copy link
Member

Zend\Validator\Csrf requires the packages zend-session and zend-math but in composer.json they are only set as dev-requirements. Even though they are listed as suggestions, the package in itself is not usable without these packages. so they should be included in the require-section.

@weierophinney
Copy link
Member

All validators are opt -in, and the majority have no dependencies outside those in the "require" section. For this reason, we list any validator-specific deps as suggestions, but do not require them.

Eventually, we may split these into separate packages so we can make those deps requirements, but for now, they are suggestions.

@heiglandreas
Copy link
Member Author

Then the suggestions should at least include which validators can only be used when the suggested package is added…

@weierophinney
Copy link
Member

weierophinney commented Feb 18, 2017 via email

@heiglandreas
Copy link
Member Author

Already at it 😉

heiglandreas added a commit to heiglandreas/zend-validator that referenced this issue Feb 18, 2017
This commit adds more infos why separate packages are suggested. This is
especially of interest as different Validators are only usable with
additional packages.

This addresses zendframework#147
Ocramius added a commit that referenced this issue Feb 18, 2017
Ocramius added a commit that referenced this issue Feb 18, 2017
…per-existing-optional-dependencies'

Close #147
Close #148
Ocramius pushed a commit that referenced this issue Feb 18, 2017
This commit adds more infos why separate packages are suggested. This is
especially of interest as different Validators are only usable with
additional packages.

This addresses #147
Ocramius added a commit that referenced this issue Feb 18, 2017
Ocramius added a commit that referenced this issue Feb 18, 2017
…per-existing-optional-dependencies' into develop

Forward port #147
Forward port #148
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants