You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trigger_error('ExecutionContext::validate() is deprecated since version 2.5 and will be removed in 3.0. Use ExecutionContext::getValidator() together with inContext() instead.', E_USER_DEPRECATED);
325
-
326
324
thrownewBadMethodCallException(
327
325
'validate() is not supported anymore as of Symfony 2.5. '.
328
326
'Please use getValidator() instead or enable the legacy mode.'
@@ -334,8 +332,6 @@ public function validate($value, $subPath = '', $groups = null, $traverse = fals
trigger_error('ExecutionContext::validateValue() is deprecated since version 2.5 and will be removed in 3.0. Use ExecutionContext::getValidator() together with inContext() instead.', E_USER_DEPRECATED);
338
-
339
335
thrownewBadMethodCallException(
340
336
'validateValue() is not supported anymore as of Symfony 2.5. '.
341
337
'Please use getValidator() instead or enable the legacy mode.'
'The parameters $invalidValue, $pluralization and $code of '.__METHOD__.' are deprecated since version 2.5 and will be removed in 3.0. Please use buildViolation() instead.',
63
+
E_USER_DEPRECATED
64
+
);
65
+
61
66
$this
62
67
->buildViolation($message, $parameters)
63
68
->setInvalidValue($invalidValue)
@@ -77,6 +82,11 @@ public function addViolation($message, array $parameters = array(), $invalidValu
trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use getValidator() together with inContext() instead.', E_USER_DEPRECATED);
trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use getValidator() together with inContext() instead.', E_USER_DEPRECATED);
154
+
141
155
return$this
142
156
->getValidator()
143
157
->inContext($this)
@@ -151,6 +165,8 @@ public function validateValue($value, $constraints, $subPath = '', $groups = nul
151
165
*/
152
166
publicfunctiongetMetadataFactory()
153
167
{
168
+
trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use getValidator() together with getMetadataFor() or hasMetadataFor instead.', E_USER_DEPRECATED);
0 commit comments