minor #12850 [Validator] add deprecation log (#12674) (phramz)

This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] add deprecation log (#12674)

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12674
| License       | MIT
| Doc PR        |

... follows #12730

Commits
-------

0f7e303 [Validator] add deprecation log (#12674)
This commit is contained in:
Fabien Potencier 2015-01-03 14:26:32 +01:00
commit c91d72a039
2 changed files with 2 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class LegacyValidator extends RecursiveValidator implements LegacyValidatorInter
return parent::validate($value, $constraints, $groups);
}
trigger_error('ValidatorInterface::validate() was deprecated in version 2.5 and will be removed in version 3.0. Please use Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
trigger_error('Symfony\\Component\\Validator\\ValidatorInterface::validate() was deprecated in version 2.5 and will be removed in version 3.0. Please use Symfony\\Component\\Validator\\Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
$constraint = new Valid(array('traverse' => $traverse, 'deep' => $deep));
@ -61,7 +61,7 @@ class LegacyValidator extends RecursiveValidator implements LegacyValidatorInter
public function validateValue($value, $constraints, $groups = null)
{
trigger_error('ValidatorInterface::validateValue() was deprecated in version 2.5 and will be removed in version 3.0. Please use Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
trigger_error('Symfony\\Component\\Validator\\ValidatorInterface::validateValue() was deprecated in version 2.5 and will be removed in version 3.0. Please use Symfony\\Component\\Validator\\Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
return parent::validate($value, $constraints, $groups);
}

View File

@ -11,8 +11,6 @@
namespace Symfony\Component\Validator;
trigger_error('ValidatorInterface was deprecated in version 2.5 and will be removed in version 3.0. Please use Validator\\ValidatorInterface instead.', E_USER_DEPRECATED);
/**
* Validates values and graphs of objects and arrays.
*