2012-04-26 21:33:09 +01:00
|
|
|
CHANGELOG
|
|
|
|
=========
|
|
|
|
|
2014-06-15 14:48:08 +01:00
|
|
|
2.6.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
* [BC BREAK] `FileValidator` disallow empty files
|
2014-07-12 22:19:07 +01:00
|
|
|
* [BC BREAK] `UserPasswordValidator` source message change
|
2014-08-12 14:33:06 +01:00
|
|
|
* [BC BREAK] added internal `ExecutionContextInterface::setConstraint()`
|
|
|
|
* added `ConstraintViolation::getConstraint()`
|
2014-08-06 17:24:06 +01:00
|
|
|
* [BC BREAK] The `ExpressionValidator` will now evaluate the Expression even when the property value is null or an empty string
|
2014-08-19 15:41:47 +01:00
|
|
|
* deprecated `ClassMetadata::hasMemberMetadatas()`
|
|
|
|
* deprecated `ClassMetadata::getMemberMetadatas()`
|
|
|
|
* deprecated `ClassMetadata::addMemberMetadata()`
|
2014-08-20 15:09:22 +01:00
|
|
|
* [BC BREAK] added `Mapping\MetadataInterface::getConstraints()`
|
2014-06-15 14:48:08 +01:00
|
|
|
|
2013-12-29 20:44:38 +00:00
|
|
|
2.5.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
* deprecated `ApcCache` in favor of `DoctrineCache`
|
|
|
|
* added `DoctrineCache` to adapt any Doctrine cache
|
2014-02-12 11:38:50 +00:00
|
|
|
* `GroupSequence` now implements `ArrayAccess`, `Countable` and `Traversable`
|
2014-03-18 11:31:30 +00:00
|
|
|
* [BC BREAK] changed `ClassMetadata::getGroupSequence()` to return a `GroupSequence` instance instead of an array
|
2014-02-18 14:23:59 +00:00
|
|
|
* `Callback` can now be put onto properties (useful when you pass a closure to the constraint)
|
2014-03-18 11:31:30 +00:00
|
|
|
* deprecated `ClassBasedInterface`
|
|
|
|
* deprecated `MetadataInterface`
|
|
|
|
* deprecated `PropertyMetadataInterface`
|
|
|
|
* deprecated `PropertyMetadataContainerInterface`
|
|
|
|
* deprecated `Mapping\ElementMetadata`
|
|
|
|
* added `Mapping\MetadataInterface`
|
|
|
|
* added `Mapping\ClassMetadataInterface`
|
|
|
|
* added `Mapping\PropertyMetadataInterface`
|
|
|
|
* added `Mapping\GenericMetadata`
|
|
|
|
* added `Mapping\CascadingStrategy`
|
|
|
|
* added `Mapping\TraversalStrategy`
|
|
|
|
* deprecated `Mapping\ClassMetadata::accept()`
|
|
|
|
* deprecated `Mapping\MemberMetadata::accept()`
|
|
|
|
* removed array type hint of `Mapping\ClassMetadata::setGroupSequence()`
|
|
|
|
* deprecated `MetadataFactoryInterface`
|
|
|
|
* deprecated `Mapping\BlackholeMetadataFactory`
|
|
|
|
* deprecated `Mapping\ClassMetadataFactory`
|
|
|
|
* added `Mapping\Factory\MetadataFactoryInterface`
|
|
|
|
* added `Mapping\Factory\BlackHoleMetadataFactory`
|
2014-03-30 19:03:32 +01:00
|
|
|
* added `Mapping\Factory\LazyLoadingMetadataFactory`
|
2014-03-18 11:31:30 +00:00
|
|
|
* deprecated `ExecutionContextInterface`
|
|
|
|
* deprecated `ExecutionContext`
|
|
|
|
* deprecated `GlobalExecutionContextInterface`
|
|
|
|
* added `Context\ExecutionContextInterface`
|
|
|
|
* added `Context\ExecutionContext`
|
|
|
|
* added `Context\ExecutionContextFactoryInterface`
|
|
|
|
* added `Context\ExecutionContextFactory`
|
|
|
|
* deprecated `ValidatorInterface`
|
|
|
|
* deprecated `Validator`
|
|
|
|
* deprecated `ValidationVisitorInterface`
|
|
|
|
* deprecated `ValidationVisitor`
|
|
|
|
* added `Validator\ValidatorInterface`
|
|
|
|
* added `Validator\RecursiveValidator`
|
|
|
|
* added `Validator\ContextualValidatorInterface`
|
|
|
|
* added `Validator\RecursiveContextualValidator`
|
|
|
|
* added `Violation\ConstraintViolationBuilderInterface`
|
|
|
|
* added `Violation\ConstraintViolationBuilder`
|
|
|
|
* added `ConstraintViolation::getParameters()`
|
|
|
|
* added `ConstraintViolation::getPlural()`
|
|
|
|
* added `Constraints\Traverse`
|
|
|
|
* deprecated `$deep` property in `Constraints\Valid`
|
|
|
|
* added `ValidatorBuilderInterface::setApiVersion()`
|
|
|
|
* added `Validation::API_VERSION_2_4`
|
|
|
|
* added `Validation::API_VERSION_2_5`
|
|
|
|
* added `Exception\OutOfBoundsException`
|
|
|
|
* added `Exception\UnsupportedMetadataException`
|
|
|
|
* made `Exception\ValidatorException` extend `Exception\RuntimeException`
|
|
|
|
* added `Util\PropertyPath`
|
2014-03-18 17:02:22 +00:00
|
|
|
* made the PropertyAccess component an optional dependency
|
|
|
|
* deprecated `ValidatorBuilder::setPropertyAccessor()`
|
2014-03-18 11:31:30 +00:00
|
|
|
|
2013-12-29 20:44:38 +00:00
|
|
|
|
2013-07-14 18:03:22 +01:00
|
|
|
2.4.0
|
|
|
|
-----
|
|
|
|
|
2013-09-04 22:39:39 +01:00
|
|
|
* added a constraint the uses the expression language
|
|
|
|
* added `minRatio`, `maxRatio`, `allowSquare`, `allowLandscape`, and `allowPortrait` to Image validator
|
2013-07-14 18:03:22 +01:00
|
|
|
|
2013-04-17 17:02:12 +01:00
|
|
|
2.3.0
|
|
|
|
-----
|
|
|
|
|
2013-04-21 11:48:25 +01:00
|
|
|
* added the ISBN, ISSN, and IBAN validators
|
2013-04-17 17:02:12 +01:00
|
|
|
* copied the constraints `Optional` and `Required` to the
|
|
|
|
`Symfony\Component\Validator\Constraints\` namespace and deprecated the original
|
|
|
|
classes.
|
2013-04-29 13:43:20 +01:00
|
|
|
* added comparison validators (EqualTo, NotEqualTo, LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, IdenticalTo, NotIdenticalTo)
|
2013-04-17 17:02:12 +01:00
|
|
|
|
2012-09-18 14:46:10 +01:00
|
|
|
2.2.0
|
|
|
|
-----
|
|
|
|
|
2012-10-27 17:57:10 +01:00
|
|
|
* added a CardScheme validator
|
2012-09-18 14:46:10 +01:00
|
|
|
* added a Luhn validator
|
2012-11-22 14:58:46 +00:00
|
|
|
* moved @api-tags from `Validator` to `ValidatorInterface`
|
|
|
|
* moved @api-tags from `ConstraintViolation` to the new `ConstraintViolationInterface`
|
|
|
|
* moved @api-tags from `ConstraintViolationList` to the new `ConstraintViolationListInterface`
|
|
|
|
* moved @api-tags from `ExecutionContext` to the new `ExecutionContextInterface`
|
|
|
|
* [BC BREAK] `ConstraintValidatorInterface::initialize` is now type hinted against `ExecutionContextInterface` instead of `ExecutionContext`
|
|
|
|
* [BC BREAK] changed the visibility of the properties in `Validator` from protected to private
|
|
|
|
* deprecated `ClassMetadataFactoryInterface` in favor of the new `MetadataFactoryInterface`
|
|
|
|
* deprecated `ClassMetadataFactory::getClassMetadata` in favor of `getMetadataFor`
|
|
|
|
* created `MetadataInterface`, `PropertyMetadataInterface`, `ClassBasedInterface` and `PropertyMetadataContainerInterface`
|
|
|
|
* deprecated `GraphWalker` in favor of the new `ValidationVisitorInterface`
|
|
|
|
* deprecated `ExecutionContext::addViolationAtPath`
|
|
|
|
* deprecated `ExecutionContext::addViolationAtSubPath` in favor of `ExecutionContextInterface::addViolationAt`
|
|
|
|
* deprecated `ExecutionContext::getCurrentClass` in favor of `ExecutionContextInterface::getClassName`
|
|
|
|
* deprecated `ExecutionContext::getCurrentProperty` in favor of `ExecutionContextInterface::getPropertyName`
|
|
|
|
* deprecated `ExecutionContext::getCurrentValue` in favor of `ExecutionContextInterface::getValue`
|
|
|
|
* deprecated `ExecutionContext::getGraphWalker` in favor of `ExecutionContextInterface::validate` and `ExecutionContextInterface::validateValue`
|
|
|
|
* improved `ValidatorInterface::validateValue` to accept arrays of constraints
|
|
|
|
* changed `ValidatorInterface::getMetadataFactory` to return a `MetadataFactoryInterface` instead of a `ClassMetadataFactoryInterface`
|
|
|
|
* removed `ClassMetadataFactoryInterface` type hint from `ValidatorBuilderInterface::setMetadataFactory`.
|
|
|
|
As of Symfony 2.3, this method will be typed against `MetadataFactoryInterface` instead.
|
2012-12-13 14:43:41 +00:00
|
|
|
* [BC BREAK] the switches `traverse` and `deep` in the `Valid` constraint and in `GraphWalker::walkReference`
|
|
|
|
are ignored for arrays now. Arrays are always traversed recursively.
|
2012-11-27 21:42:05 +00:00
|
|
|
* added dependency to Translation component
|
|
|
|
* violation messages are now translated with a TranslatorInterface implementation
|
2012-11-28 13:07:07 +00:00
|
|
|
* [BC BREAK] inserted argument `$message` in the constructor of `ConstraintViolation`
|
|
|
|
* [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `ExecutionContext`
|
|
|
|
* [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `GraphWalker`
|
|
|
|
* [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `ValidationVisitor`
|
|
|
|
* [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `Validator`
|
|
|
|
* [BC BREAK] added `setTranslator()` and `setTranslationDomain()` to `ValidatorBuilderInterface`
|
2012-12-03 15:49:07 +00:00
|
|
|
* improved the Validator to support pluralized messages by default
|
|
|
|
* [BC BREAK] changed the source of all pluralized messages in the translation files to the pluralized version
|
2013-01-08 14:20:14 +00:00
|
|
|
* added ExceptionInterface, BadMethodCallException and InvalidArgumentException
|
2012-09-18 14:46:10 +01:00
|
|
|
|
2012-04-26 21:33:09 +01:00
|
|
|
2.1.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
* added support for `ctype_*` assertions in `TypeValidator`
|
|
|
|
* improved the ImageValidator with min width, max width, min height, and max height constraints
|
|
|
|
* added support for MIME with wildcard in FileValidator
|
|
|
|
* changed Collection validator to add "missing" and "extra" errors to
|
|
|
|
individual fields
|
|
|
|
* changed default value for `extraFieldsMessage` and `missingFieldsMessage`
|
|
|
|
in Collection constraint
|
|
|
|
* made ExecutionContext immutable
|
|
|
|
* deprecated Constraint methods `setMessage`, `getMessageTemplate` and
|
|
|
|
`getMessageParameters`
|
|
|
|
* added support for dynamic group sequences with the GroupSequenceProvider pattern
|
|
|
|
* [BC BREAK] ConstraintValidatorInterface method `isValid` has been renamed to
|
|
|
|
`validate`, its return value was dropped. ConstraintValidator still contains
|
|
|
|
`isValid` for BC
|
2012-05-18 11:22:33 +01:00
|
|
|
* [BC BREAK] collections in fields annotated with `Valid` are not traversed
|
|
|
|
recursively anymore by default. `Valid` contains a new property `deep`
|
|
|
|
which enables the BC behavior.
|
2012-07-11 18:40:29 +01:00
|
|
|
* added Count constraint
|
|
|
|
* added Length constraint
|
2012-07-25 19:30:38 +01:00
|
|
|
* added Range constraint
|
2012-07-11 18:22:49 +01:00
|
|
|
* deprecated the Min and Max constraints
|
2012-07-11 18:40:29 +01:00
|
|
|
* deprecated the MinLength and MaxLength constraints
|
2012-07-30 09:57:16 +01:00
|
|
|
* added Validation and ValidatorBuilderInterface
|
|
|
|
* deprecated ValidatorContext, ValidatorContextInterface and ValidatorFactory
|