added @Target annotations

This commit is contained in:
Fabien Potencier 2014-04-23 12:57:22 +02:00
parent 5947eec36f
commit 542d6fa580
50 changed files with 51 additions and 1 deletions

View File

@ -17,6 +17,8 @@ use Symfony\Component\Validator\Constraint;
* Constraint for the Unique Entity validator * Constraint for the Unique Entity validator
* *
* @Annotation * @Annotation
* @Target("CLASS")
*
* @author Benjamin Eberlei <kontakt@beberlei.de> * @author Benjamin Eberlei <kontakt@beberlei.de>
*/ */
class UniqueEntity extends Constraint class UniqueEntity extends Constraint

View File

@ -15,6 +15,7 @@ namespace Symfony\Component\Routing\Annotation;
* Annotation class for @Route(). * Annotation class for @Route().
* *
* @Annotation * @Annotation
* @Target({"CLASS", "METHOD"})
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/ */
class UserPassword extends Constraint class UserPassword extends Constraint
{ {

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target("CLASS")
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -17,6 +17,7 @@ use Symfony\Component\Validator\Constraint;
* Metadata for the CardSchemeValidator. * Metadata for the CardSchemeValidator.
* *
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/ */
class CardScheme extends Constraint class CardScheme extends Constraint
{ {

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraints\Optional as BaseOptional;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraints\Required as BaseRequired;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Miha Vrhovnik <miha.vrhovnik@pagein.si> * @author Miha Vrhovnik <miha.vrhovnik@pagein.si>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -15,6 +15,7 @@ namespace Symfony\Component\Validator\Constraints;
* Annotation for group sequences * Annotation for group sequences
* *
* @Annotation * @Annotation
* @Target("CLASS")
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,8 +15,8 @@ namespace Symfony\Component\Validator\Constraints;
* Annotation to define a group sequence provider * Annotation to define a group sequence provider
* *
* @Annotation * @Annotation
* @Target("CLASS")
*/ */
class GroupSequenceProvider class GroupSequenceProvider
{ {
} }

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/ */
class Iban extends Constraint class Iban extends Constraint
{ {

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @api * @api
*/ */

View File

@ -18,6 +18,7 @@ use Symfony\Component\Validator\Constraint;
* Validates that a value is a valid IP address * Validates that a value is a valid IP address
* *
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* @author Joseph Bielawski <stloyd@gmail.com> * @author Joseph Bielawski <stloyd@gmail.com>

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author The Whole Life To Learn <thewholelifetolearn@gmail.com> * @author The Whole Life To Learn <thewholelifetolearn@gmail.com>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Antonio J. García Lagar <aj@garcialagar.es> * @author Antonio J. García Lagar <aj@garcialagar.es>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -17,6 +17,7 @@ use Symfony\Component\Validator\Constraint;
* Metadata for the LuhnValidator. * Metadata for the LuhnValidator.
* *
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/ */
class Luhn extends Constraint class Luhn extends Constraint
{ {

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Daniel Holmes <daniel@danielholmes.org> * @author Daniel Holmes <daniel@danielholmes.org>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -15,6 +15,7 @@ use Symfony\Component\Validator\Constraint;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
/** /**
* @Annotation * @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *