Christian Flothmann
0ca27ccfde
add groups support to the Valid constraint
2017-07-03 18:47:01 +02:00
Fabien Potencier
2a6b629e39
[Validator] removed deprecated methods
2015-10-01 16:20:47 +02:00
Tobias Schultze
8573385a83
Merge branch '2.3' into 2.7
...
Conflicts:
src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php
src/Symfony/Component/ClassLoader/DebugClassLoader.php
src/Symfony/Component/ClassLoader/UniversalClassLoader.php
src/Symfony/Component/Console/Command/Command.php
src/Symfony/Component/DependencyInjection/Definition.php
src/Symfony/Component/DependencyInjection/DefinitionDecorator.php
src/Symfony/Component/EventDispatcher/Event.php
src/Symfony/Component/Filesystem/Exception/IOException.php
src/Symfony/Component/HttpFoundation/File/File.php
src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php
src/Symfony/Component/HttpFoundation/Session/SessionInterface.php
src/Symfony/Component/HttpFoundation/StreamedResponse.php
src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php
src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php
src/Symfony/Component/HttpKernel/HttpKernel.php
src/Symfony/Component/HttpKernel/Kernel.php
src/Symfony/Component/HttpKernel/KernelInterface.php
src/Symfony/Component/HttpKernel/Log/LoggerInterface.php
src/Symfony/Component/HttpKernel/Log/NullLogger.php
src/Symfony/Component/Process/Process.php
src/Symfony/Component/Routing/RequestContext.php
src/Symfony/Component/Routing/Route.php
src/Symfony/Component/Templating/EngineInterface.php
src/Symfony/Component/Templating/PhpEngine.php
src/Symfony/Component/Templating/TemplateNameParser.php
src/Symfony/Component/Templating/TemplateReference.php
src/Symfony/Component/Templating/TemplateReferenceInterface.php
src/Symfony/Component/Translation/IdentityTranslator.php
src/Symfony/Component/Translation/Translator.php
src/Symfony/Component/Validator/ConstraintViolationInterface.php
src/Symfony/Component/Validator/Constraints/False.php
src/Symfony/Component/Validator/Constraints/FalseValidator.php
src/Symfony/Component/Validator/Constraints/GroupSequence.php
src/Symfony/Component/Validator/Constraints/Image.php
src/Symfony/Component/Validator/Constraints/Null.php
src/Symfony/Component/Validator/Constraints/NullValidator.php
src/Symfony/Component/Validator/Constraints/True.php
src/Symfony/Component/Validator/Constraints/TrueValidator.php
src/Symfony/Component/Validator/ExecutionContextInterface.php
src/Symfony/Component/Validator/ValidatorInterface.php
2015-09-29 14:06:14 +02:00
Tobias Schultze
f1c7c657a7
remove api tags from code
2015-09-28 19:11:22 +02:00
reecefowell
73bbaa6cc7
Silence invasive deprecation warnings, opt-in for warnings
2015-06-08 10:37:21 +01:00
Hugo Hamon
86b9f6b0c6
Adds deprecation notices for structures to be removed in 3.0.
2015-01-05 15:57:15 +01:00
Balazs Csaba
46f1eb06ff
Added deprication note on Valid constraint validator for deep option.
2014-11-29 16:46:48 +02:00
Fabien Potencier
61e287e0b6
Merge branch '2.4'
...
* 2.4:
[Validator] added missing @Target
[Validator] fixed @Target config
added @Target annotations
[Process] Add missing docblocks, remove variable declarations
Conflicts:
src/Symfony/Component/Process/Process.php
src/Symfony/Component/Process/ProcessBuilder.php
2014-04-23 16:08:54 +02:00
Fabien Potencier
542d6fa580
added @Target annotations
2014-04-23 15:35:47 +02:00
Bernhard Schussek
01ceeda376
[Validator] Improved test coverage of the Traverse constraint
2014-03-30 18:28:58 +02:00
Bernhard Schussek
08172bfe7b
[Validator] Merged validate(), validateObject() and validateObjects() to simplify usage
2014-03-30 18:28:56 +02:00
Bernhard Schussek
51197f68a3
[Validator] Made traversal of Traversables consistent
...
If the traversal strategy is IMPLICIT (the default), the validator will now
traverse any object that implements \Traversable and any array
2014-03-30 18:28:56 +02:00
Bernhard Schussek
a3555fbd99
[Validator] Fixed: Objects are not traversed unless they are instances of Traversable
2014-03-30 18:28:55 +02:00
Bernhard Schussek
9b07b0c672
[Validator] Implemented BC validation of arrays through validate()
2014-03-30 18:28:55 +02:00
Bernhard Schussek
a868048a82
[Validator] Moved constraints Optional and Required to the Constraints\ namespace
2013-04-17 18:02:12 +02:00
dantleech
e655120f05
Enforce sprintf for exceptions
2013-04-11 08:50:46 +02:00
Dariusz Górecki
7c47e34928
[CS Fix] Consistent coding-style of concatenation operator usage
2013-04-02 10:39:57 +01:00
Bernhard Schussek
1fe39962fd
[Validator] Improved error messages displayed when the Valid constraint is misused
2012-07-11 18:23:09 +02:00
Bernhard Schussek
8f7e2f602c
[Validator] Fixed: @Valid does not recurse the traversal of collections anymore by default
2012-05-22 09:29:53 +02:00
Fabien Potencier
b36c002fa4
[Validator] tagged the public @api
2011-07-20 10:37:57 +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
Fabien Potencier
1aabc5da64
fixed CS
2011-06-08 12:16:48 +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
0c3ca26e6e
[Validator] Implemented traversing of \Traversable objects using the @Valid constraint. Can be disabled by setting the @Valid option 'traverse' to false
2011-01-28 09:19:32 +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
Jordi Boggiano
094d428e68
CS: Unified strict equality comparisons, put var on the right side
2010-12-21 08:51:21 +01:00
Bernhard Schussek
46145d8de7
[Validator] Fixed exception thrown in Valid constraint to be thrown only when the options are not empty
2010-11-17 10:55:48 +01:00
Bernhard Schussek
6a148465da
[Validator][Form] Removed support for match-all group "*"
...
The constraint "Valid" does not accept any options or groups anymore. As per
JSR303 1.0 final, section 3.5.1 "Object graph validation" (page 39),
properties annotated with valid should be cascaded independent of the current
group (i.e. always). Thus the group "*" is not necessary anymore and was
removed from the "Valid" constraint in the Form validation.xml.
2010-11-17 08:02:06 +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