Tobias Schultze
2025778c8f
[Validator] no need to initialize properties with null
2014-06-17 12:31:26 +02:00
Tobias Schultze
967576aaa9
[Validator] smaller fixes for binary format
2014-06-17 11:58:55 +02:00
Fabien Potencier
d217c7a852
feature #11027 [Validator] Support "maxSize" given in KiB (Jérémy Derussé)
...
This PR was squashed before being merged into the 2.6-dev branch (closes #11027 ).
Discussion
----------
[Validator] Support "maxSize" given in KiB
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #10962
| License | MIT
| Doc PR | symfony/symfony-docs#3895
To display the constraint validation message with an expected suffix, this PR add a new option in File constraint.
Commits
-------
48ed754
[Validator] Support "maxSize" given in KiB
2014-06-17 07:26:28 +02:00
Jérémy Derussé
48ed754fd3
[Validator] Support "maxSize" given in KiB
2014-06-17 07:26:23 +02:00
Vyacheslav Salakhutdinov
1b253cb14d
Disallow empty file in FileValidator
2014-06-15 13:48:08 +00:00
Fabien Potencier
542d6fa580
added @Target annotations
2014-04-23 15:35:47 +02:00
Bernhard Schussek
a868048a82
[Validator] Moved constraints Optional and Required to the Constraints\ namespace
2013-04-17 18:02:12 +02:00
Christian Raue
64101aba0a
separate numeric value from suffix in File constraint's error message $uploadIniSizeErrorMessage
2012-05-11 23:15:32 +02:00
Christian Raue
868d649d5c
separate numeric values from suffixes in File constraint's error message $maxSizeMessage
2012-05-11 23:15:29 +02:00
Sasa Stamenkovic
4bff221e7b
Added missing dot to translation messages.
2012-04-13 21:43:24 +02:00
Rafael Dohms
836d12b660
Fixing typo.
2012-03-19 23:29:43 +01:00
Rafael Dohms
ac2a187b4d
Improved feedback for Upload Validator to cover all PHP error states.
...
This way we don't get a unclear "upload error" message unless its something completely unexpected.
2012-03-19 14:37:25 +01:00
Fabien Potencier
b36c002fa4
[Validator] tagged the public @api
2011-07-20 10:37:57 +02:00
Victor Berchet
d58ba34246
[Validator] Consider the ini directive 'upload_max_filesize' while validating an uploaded file (fixes GH-1441)
2011-07-05 20:05:50 +02:00
Johannes Schmitt
efcb435268
updated to doctrine changes
2011-06-30 12:03:19 +02:00
Victor Berchet
87ca9f3a52
[Validation] some tweaks and phpDoc
2011-06-14 09:40:26 +02:00
stloyd
3ea2a32c53
Refactor validators constraints:
...
- remove need for defining "getTargets()" method as 95% of validators use same one
- replace abstract "Constraint::getTargets()" with one that use 95% of validators
- add additional tests for "Constraint::getTargets()" method
- remove unused "use" statement in Constraint\Valid
2011-05-25 10:51:35 +02:00
Fabien Potencier
f92055ce42
[Validator] renamed methods that do not follow CS
...
requiredOptions -> getRequiredOptions
targets -> getTargets
defaultOption -> getDefaultOption
2011-03-30 23:18:20 +02:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Bernhard Schussek
eed3c9a48c
[Validator] Added abstract method Constraint::targets() to define whether constraints can be put onto properties, classes or both
2011-01-19 16:25:50 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Fabien Potencier
3a4d9cb185
[Validation] fixed license
2010-10-02 12:42:35 +02:00
Fabien Potencier
9580c74f0b
[Validator] changed the convention for placeholders in messages to be compatible with Twig (from %limit% to {{ limit }})
2010-09-27 09:46:56 +02:00
Fabien Potencier
866c306dc8
removed the message interpolator system in the Validator component (i18n management should be done globally, not in a specific component)
2010-09-24 16:41:28 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00