minor #12750 [Hackday] - add trigger error for deprecated clases. (desarrolla2)

This PR was squashed before being merged into the 2.7 branch (closes #12750).

Discussion
----------

[Hackday] - add trigger error for deprecated clases.

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

Commits
-------

48dd497 [Hackday] - add trigger error for deprecated clases.
This commit is contained in:
Fabien Potencier 2015-01-03 15:12:57 +01:00
commit d58bdaeb51
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@
namespace Symfony\Component\Validator\Constraints\Collection;
trigger_error('Symfony\Component\Validator\Constraints\Collection\Optional was deprecated in version 2.3 and will be removed in 3.0. You should use Symfony\Component\Validator\Constraints\Optional instead.', E_USER_DEPRECATED);
use Symfony\Component\Validator\Constraints\Optional as BaseOptional;
/**

View File

@ -11,6 +11,8 @@
namespace Symfony\Component\Validator\Constraints\Collection;
trigger_error('Symfony\Component\Validator\Constraints\Collection\Required was deprecated in version 2.3 and will be removed in 3.0. You should use Symfony\Component\Validator\Constraints\Required instead.', E_USER_DEPRECATED);
use Symfony\Component\Validator\Constraints\Required as BaseRequired;
/**