Chris@0
|
1 CHANGELOG
|
Chris@0
|
2 =========
|
Chris@0
|
3
|
Chris@14
|
4 3.4.0
|
Chris@14
|
5 -----
|
Chris@14
|
6
|
Chris@14
|
7 * added support for validation groups to the `Valid` constraint
|
Chris@14
|
8 * not setting the `strict` option of the `Choice` constraint to `true` is
|
Chris@14
|
9 deprecated and will throw an exception in Symfony 4.0
|
Chris@14
|
10 * setting the `checkDNS` option of the `Url` constraint to `true` is deprecated in favor of
|
Chris@14
|
11 the `Url::CHECK_DNS_TYPE_*` constants values and will throw an exception in Symfony 4.0
|
Chris@14
|
12 * added min/max amount of pixels check to `Image` constraint via `minPixels` and `maxPixels`
|
Chris@14
|
13 * added a new "propertyPath" option to comparison constraints in order to get the value to compare from an array or object
|
Chris@14
|
14
|
Chris@14
|
15 3.3.0
|
Chris@14
|
16 -----
|
Chris@14
|
17
|
Chris@14
|
18 * added `AddValidatorInitializersPass`
|
Chris@14
|
19 * added `AddConstraintValidatorsPass`
|
Chris@14
|
20 * added `ContainerConstraintValidatorFactory`
|
Chris@14
|
21
|
Chris@0
|
22 3.2.0
|
Chris@0
|
23 -----
|
Chris@0
|
24
|
Chris@0
|
25 * deprecated `Tests\Constraints\AbstractContraintValidatorTest` in favor of `Test\ConstraintValidatorTestCase`
|
Chris@14
|
26 * added support for PHP constants in YAML configuration files
|
Chris@0
|
27
|
Chris@0
|
28 3.1.0
|
Chris@0
|
29 -----
|
Chris@0
|
30
|
Chris@0
|
31 * deprecated `DateTimeValidator::PATTERN` constant
|
Chris@0
|
32 * added a `format` option to the `DateTime` constraint
|
Chris@0
|
33
|
Chris@0
|
34 2.8.0
|
Chris@0
|
35 -----
|
Chris@0
|
36
|
Chris@0
|
37 * added the BIC (SWIFT-Code) validator
|
Chris@0
|
38
|
Chris@0
|
39 2.7.0
|
Chris@0
|
40 -----
|
Chris@0
|
41
|
Chris@0
|
42 * deprecated `DefaultTranslator` in favor of `Symfony\Component\Translation\IdentityTranslator`
|
Chris@0
|
43 * deprecated PHP7-incompatible constraints (Null, True, False) and related validators (NullValidator, TrueValidator, FalseValidator) in favor of their `Is`-prefixed equivalent
|
Chris@0
|
44
|
Chris@0
|
45 2.6.0
|
Chris@0
|
46 -----
|
Chris@0
|
47
|
Chris@0
|
48 * [BC BREAK] `FileValidator` disallow empty files
|
Chris@0
|
49 * [BC BREAK] `UserPasswordValidator` source message change
|
Chris@0
|
50 * [BC BREAK] added internal `ExecutionContextInterface::setConstraint()`
|
Chris@0
|
51 * added `ConstraintViolation::getConstraint()`
|
Chris@0
|
52 * [BC BREAK] The `ExpressionValidator` will now evaluate the Expression even when the property value is null or an empty string
|
Chris@0
|
53 * deprecated `ClassMetadata::hasMemberMetadatas()`
|
Chris@0
|
54 * deprecated `ClassMetadata::getMemberMetadatas()`
|
Chris@0
|
55 * deprecated `ClassMetadata::addMemberMetadata()`
|
Chris@0
|
56 * [BC BREAK] added `Mapping\MetadataInterface::getConstraints()`
|
Chris@0
|
57 * added generic "payload" option to all constraints for attaching domain-specific data
|
Chris@0
|
58 * [BC BREAK] added `ConstraintViolationBuilderInterface::setCause()`
|
Chris@0
|
59
|
Chris@0
|
60 2.5.0
|
Chris@0
|
61 -----
|
Chris@0
|
62
|
Chris@0
|
63 * deprecated `ApcCache` in favor of `DoctrineCache`
|
Chris@0
|
64 * added `DoctrineCache` to adapt any Doctrine cache
|
Chris@0
|
65 * `GroupSequence` now implements `ArrayAccess`, `Countable` and `Traversable`
|
Chris@0
|
66 * [BC BREAK] changed `ClassMetadata::getGroupSequence()` to return a `GroupSequence` instance instead of an array
|
Chris@0
|
67 * `Callback` can now be put onto properties (useful when you pass a closure to the constraint)
|
Chris@0
|
68 * deprecated `ClassBasedInterface`
|
Chris@0
|
69 * deprecated `MetadataInterface`
|
Chris@0
|
70 * deprecated `PropertyMetadataInterface`
|
Chris@0
|
71 * deprecated `PropertyMetadataContainerInterface`
|
Chris@0
|
72 * deprecated `Mapping\ElementMetadata`
|
Chris@0
|
73 * added `Mapping\MetadataInterface`
|
Chris@0
|
74 * added `Mapping\ClassMetadataInterface`
|
Chris@0
|
75 * added `Mapping\PropertyMetadataInterface`
|
Chris@0
|
76 * added `Mapping\GenericMetadata`
|
Chris@0
|
77 * added `Mapping\CascadingStrategy`
|
Chris@0
|
78 * added `Mapping\TraversalStrategy`
|
Chris@0
|
79 * deprecated `Mapping\ClassMetadata::accept()`
|
Chris@0
|
80 * deprecated `Mapping\MemberMetadata::accept()`
|
Chris@0
|
81 * removed array type hint of `Mapping\ClassMetadata::setGroupSequence()`
|
Chris@0
|
82 * deprecated `MetadataFactoryInterface`
|
Chris@0
|
83 * deprecated `Mapping\BlackholeMetadataFactory`
|
Chris@0
|
84 * deprecated `Mapping\ClassMetadataFactory`
|
Chris@0
|
85 * added `Mapping\Factory\MetadataFactoryInterface`
|
Chris@0
|
86 * added `Mapping\Factory\BlackHoleMetadataFactory`
|
Chris@0
|
87 * added `Mapping\Factory\LazyLoadingMetadataFactory`
|
Chris@0
|
88 * deprecated `ExecutionContextInterface`
|
Chris@0
|
89 * deprecated `ExecutionContext`
|
Chris@0
|
90 * deprecated `GlobalExecutionContextInterface`
|
Chris@0
|
91 * added `Context\ExecutionContextInterface`
|
Chris@0
|
92 * added `Context\ExecutionContext`
|
Chris@0
|
93 * added `Context\ExecutionContextFactoryInterface`
|
Chris@0
|
94 * added `Context\ExecutionContextFactory`
|
Chris@0
|
95 * deprecated `ValidatorInterface`
|
Chris@0
|
96 * deprecated `Validator`
|
Chris@0
|
97 * deprecated `ValidationVisitorInterface`
|
Chris@0
|
98 * deprecated `ValidationVisitor`
|
Chris@0
|
99 * added `Validator\ValidatorInterface`
|
Chris@0
|
100 * added `Validator\RecursiveValidator`
|
Chris@0
|
101 * added `Validator\ContextualValidatorInterface`
|
Chris@0
|
102 * added `Validator\RecursiveContextualValidator`
|
Chris@0
|
103 * added `Violation\ConstraintViolationBuilderInterface`
|
Chris@0
|
104 * added `Violation\ConstraintViolationBuilder`
|
Chris@0
|
105 * added `ConstraintViolation::getParameters()`
|
Chris@0
|
106 * added `ConstraintViolation::getPlural()`
|
Chris@0
|
107 * added `Constraints\Traverse`
|
Chris@0
|
108 * deprecated `$deep` property in `Constraints\Valid`
|
Chris@0
|
109 * added `ValidatorBuilderInterface::setApiVersion()`
|
Chris@0
|
110 * added `Validation::API_VERSION_2_4`
|
Chris@0
|
111 * added `Validation::API_VERSION_2_5`
|
Chris@0
|
112 * added `Exception\OutOfBoundsException`
|
Chris@0
|
113 * added `Exception\UnsupportedMetadataException`
|
Chris@0
|
114 * made `Exception\ValidatorException` extend `Exception\RuntimeException`
|
Chris@0
|
115 * added `Util\PropertyPath`
|
Chris@0
|
116 * made the PropertyAccess component an optional dependency
|
Chris@0
|
117 * deprecated `ValidatorBuilder::setPropertyAccessor()`
|
Chris@0
|
118 * deprecated `validate` and `validateValue` on `Validator\Context\ExecutionContext` use `getValidator()` together with `inContext()` instead
|
Chris@0
|
119
|
Chris@0
|
120 2.4.0
|
Chris@0
|
121 -----
|
Chris@0
|
122
|
Chris@0
|
123 * added a constraint the uses the expression language
|
Chris@0
|
124 * added `minRatio`, `maxRatio`, `allowSquare`, `allowLandscape`, and `allowPortrait` to Image validator
|
Chris@0
|
125
|
Chris@0
|
126 2.3.29
|
Chris@0
|
127 ------
|
Chris@0
|
128
|
Chris@0
|
129 * fixed compatibility with PHP7 and up by introducing new constraints (IsNull, IsTrue, IsFalse) and related validators (IsNullValidator, IsTrueValidator, IsFalseValidator)
|
Chris@0
|
130
|
Chris@0
|
131 2.3.0
|
Chris@0
|
132 -----
|
Chris@0
|
133
|
Chris@0
|
134 * added the ISBN, ISSN, and IBAN validators
|
Chris@0
|
135 * copied the constraints `Optional` and `Required` to the
|
Chris@0
|
136 `Symfony\Component\Validator\Constraints\` namespace and deprecated the original
|
Chris@0
|
137 classes.
|
Chris@0
|
138 * added comparison validators (EqualTo, NotEqualTo, LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, IdenticalTo, NotIdenticalTo)
|
Chris@0
|
139
|
Chris@0
|
140 2.2.0
|
Chris@0
|
141 -----
|
Chris@0
|
142
|
Chris@0
|
143 * added a CardScheme validator
|
Chris@0
|
144 * added a Luhn validator
|
Chris@0
|
145 * moved @api-tags from `Validator` to `ValidatorInterface`
|
Chris@0
|
146 * moved @api-tags from `ConstraintViolation` to the new `ConstraintViolationInterface`
|
Chris@0
|
147 * moved @api-tags from `ConstraintViolationList` to the new `ConstraintViolationListInterface`
|
Chris@0
|
148 * moved @api-tags from `ExecutionContext` to the new `ExecutionContextInterface`
|
Chris@0
|
149 * [BC BREAK] `ConstraintValidatorInterface::initialize` is now type hinted against `ExecutionContextInterface` instead of `ExecutionContext`
|
Chris@0
|
150 * [BC BREAK] changed the visibility of the properties in `Validator` from protected to private
|
Chris@0
|
151 * deprecated `ClassMetadataFactoryInterface` in favor of the new `MetadataFactoryInterface`
|
Chris@0
|
152 * deprecated `ClassMetadataFactory::getClassMetadata` in favor of `getMetadataFor`
|
Chris@0
|
153 * created `MetadataInterface`, `PropertyMetadataInterface`, `ClassBasedInterface` and `PropertyMetadataContainerInterface`
|
Chris@0
|
154 * deprecated `GraphWalker` in favor of the new `ValidationVisitorInterface`
|
Chris@0
|
155 * deprecated `ExecutionContext::addViolationAtPath`
|
Chris@0
|
156 * deprecated `ExecutionContext::addViolationAtSubPath` in favor of `ExecutionContextInterface::addViolationAt`
|
Chris@0
|
157 * deprecated `ExecutionContext::getCurrentClass` in favor of `ExecutionContextInterface::getClassName`
|
Chris@0
|
158 * deprecated `ExecutionContext::getCurrentProperty` in favor of `ExecutionContextInterface::getPropertyName`
|
Chris@0
|
159 * deprecated `ExecutionContext::getCurrentValue` in favor of `ExecutionContextInterface::getValue`
|
Chris@0
|
160 * deprecated `ExecutionContext::getGraphWalker` in favor of `ExecutionContextInterface::validate` and `ExecutionContextInterface::validateValue`
|
Chris@0
|
161 * improved `ValidatorInterface::validateValue` to accept arrays of constraints
|
Chris@0
|
162 * changed `ValidatorInterface::getMetadataFactory` to return a `MetadataFactoryInterface` instead of a `ClassMetadataFactoryInterface`
|
Chris@0
|
163 * removed `ClassMetadataFactoryInterface` type hint from `ValidatorBuilderInterface::setMetadataFactory`.
|
Chris@0
|
164 As of Symfony 2.3, this method will be typed against `MetadataFactoryInterface` instead.
|
Chris@0
|
165 * [BC BREAK] the switches `traverse` and `deep` in the `Valid` constraint and in `GraphWalker::walkReference`
|
Chris@0
|
166 are ignored for arrays now. Arrays are always traversed recursively.
|
Chris@0
|
167 * added dependency to Translation component
|
Chris@0
|
168 * violation messages are now translated with a TranslatorInterface implementation
|
Chris@0
|
169 * [BC BREAK] inserted argument `$message` in the constructor of `ConstraintViolation`
|
Chris@0
|
170 * [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `ExecutionContext`
|
Chris@0
|
171 * [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `GraphWalker`
|
Chris@0
|
172 * [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `ValidationVisitor`
|
Chris@0
|
173 * [BC BREAK] inserted arguments `$translator` and `$translationDomain` in the constructor of `Validator`
|
Chris@0
|
174 * [BC BREAK] added `setTranslator()` and `setTranslationDomain()` to `ValidatorBuilderInterface`
|
Chris@0
|
175 * improved the Validator to support pluralized messages by default
|
Chris@0
|
176 * [BC BREAK] changed the source of all pluralized messages in the translation files to the pluralized version
|
Chris@0
|
177 * added ExceptionInterface, BadMethodCallException and InvalidArgumentException
|
Chris@0
|
178
|
Chris@0
|
179 2.1.0
|
Chris@0
|
180 -----
|
Chris@0
|
181
|
Chris@0
|
182 * added support for `ctype_*` assertions in `TypeValidator`
|
Chris@0
|
183 * improved the ImageValidator with min width, max width, min height, and max height constraints
|
Chris@0
|
184 * added support for MIME with wildcard in FileValidator
|
Chris@0
|
185 * changed Collection validator to add "missing" and "extra" errors to
|
Chris@0
|
186 individual fields
|
Chris@0
|
187 * changed default value for `extraFieldsMessage` and `missingFieldsMessage`
|
Chris@0
|
188 in Collection constraint
|
Chris@0
|
189 * made ExecutionContext immutable
|
Chris@0
|
190 * deprecated Constraint methods `setMessage`, `getMessageTemplate` and
|
Chris@0
|
191 `getMessageParameters`
|
Chris@0
|
192 * added support for dynamic group sequences with the GroupSequenceProvider pattern
|
Chris@0
|
193 * [BC BREAK] ConstraintValidatorInterface method `isValid` has been renamed to
|
Chris@0
|
194 `validate`, its return value was dropped. ConstraintValidator still contains
|
Chris@0
|
195 `isValid` for BC
|
Chris@0
|
196 * [BC BREAK] collections in fields annotated with `Valid` are not traversed
|
Chris@0
|
197 recursively anymore by default. `Valid` contains a new property `deep`
|
Chris@0
|
198 which enables the BC behavior.
|
Chris@0
|
199 * added Count constraint
|
Chris@0
|
200 * added Length constraint
|
Chris@0
|
201 * added Range constraint
|
Chris@0
|
202 * deprecated the Min and Max constraints
|
Chris@0
|
203 * deprecated the MinLength and MaxLength constraints
|
Chris@0
|
204 * added Validation and ValidatorBuilderInterface
|
Chris@0
|
205 * deprecated ValidatorContext, ValidatorContextInterface and ValidatorFactory
|