Skip to content
Browse files

added @Target annotations

  • Loading branch information...
1 parent 5947eec commit 542d6fa5804603ab7f8b5bf019bc9634d9e5f614 @fabpot fabpot committed Apr 23, 2014
Showing with 51 additions and 1 deletion.
  1. +2 −0 src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php
  2. +1 −0 src/Symfony/Component/Routing/Annotation/Route.php
  3. +1 −0 src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
  4. +1 −0 src/Symfony/Component/Validator/Constraints/All.php
  5. +1 −0 src/Symfony/Component/Validator/Constraints/Blank.php
  6. +1 −0 src/Symfony/Component/Validator/Constraints/Callback.php
  7. +1 −0 src/Symfony/Component/Validator/Constraints/CardScheme.php
  8. +1 −0 src/Symfony/Component/Validator/Constraints/Choice.php
  9. +1 −0 src/Symfony/Component/Validator/Constraints/Collection.php
  10. +1 −0 src/Symfony/Component/Validator/Constraints/Collection/Optional.php
  11. +1 −0 src/Symfony/Component/Validator/Constraints/Collection/Required.php
  12. +1 −0 src/Symfony/Component/Validator/Constraints/Count.php
  13. +1 −0 src/Symfony/Component/Validator/Constraints/Country.php
  14. +1 −0 src/Symfony/Component/Validator/Constraints/Currency.php
  15. +1 −0 src/Symfony/Component/Validator/Constraints/Date.php
  16. +1 −0 src/Symfony/Component/Validator/Constraints/DateTime.php
  17. +1 −0 src/Symfony/Component/Validator/Constraints/Email.php
  18. +1 −0 src/Symfony/Component/Validator/Constraints/EqualTo.php
  19. +1 −0 src/Symfony/Component/Validator/Constraints/False.php
  20. +1 −0 src/Symfony/Component/Validator/Constraints/File.php
  21. +1 −0 src/Symfony/Component/Validator/Constraints/GreaterThan.php
  22. +1 −0 src/Symfony/Component/Validator/Constraints/GreaterThanOrEqual.php
  23. +1 −0 src/Symfony/Component/Validator/Constraints/GroupSequence.php
  24. +1 −1 src/Symfony/Component/Validator/Constraints/GroupSequenceProvider.php
  25. +1 −0 src/Symfony/Component/Validator/Constraints/Iban.php
  26. +1 −0 src/Symfony/Component/Validator/Constraints/IdenticalTo.php
  27. +1 −0 src/Symfony/Component/Validator/Constraints/Image.php
  28. +1 −0 src/Symfony/Component/Validator/Constraints/Ip.php
  29. +1 −0 src/Symfony/Component/Validator/Constraints/Isbn.php
  30. +1 −0 src/Symfony/Component/Validator/Constraints/Issn.php
  31. +1 −0 src/Symfony/Component/Validator/Constraints/Language.php
  32. +1 −0 src/Symfony/Component/Validator/Constraints/Length.php
  33. +1 −0 src/Symfony/Component/Validator/Constraints/LessThan.php
  34. +1 −0 src/Symfony/Component/Validator/Constraints/LessThanOrEqual.php
  35. +1 −0 src/Symfony/Component/Validator/Constraints/Locale.php
  36. +1 −0 src/Symfony/Component/Validator/Constraints/Luhn.php
  37. +1 −0 src/Symfony/Component/Validator/Constraints/NotBlank.php
  38. +1 −0 src/Symfony/Component/Validator/Constraints/NotEqualTo.php
  39. +1 −0 src/Symfony/Component/Validator/Constraints/NotIdenticalTo.php
  40. +1 −0 src/Symfony/Component/Validator/Constraints/NotNull.php
  41. +1 −0 src/Symfony/Component/Validator/Constraints/Null.php
  42. +1 −0 src/Symfony/Component/Validator/Constraints/Optional.php
  43. +1 −0 src/Symfony/Component/Validator/Constraints/Range.php
  44. +1 −0 src/Symfony/Component/Validator/Constraints/Regex.php
  45. +1 −0 src/Symfony/Component/Validator/Constraints/Required.php
  46. +1 −0 src/Symfony/Component/Validator/Constraints/Time.php
  47. +1 −0 src/Symfony/Component/Validator/Constraints/True.php
  48. +1 −0 src/Symfony/Component/Validator/Constraints/Type.php
  49. +1 −0 src/Symfony/Component/Validator/Constraints/Url.php
  50. +1 −0 src/Symfony/Component/Validator/Constraints/Valid.php
View
2 src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php
@@ -17,6 +17,8 @@
* Constraint for the Unique Entity validator
*
* @Annotation
+ * @Target("CLASS")
+ *
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
class UniqueEntity extends Constraint
View
1 src/Symfony/Component/Routing/Annotation/Route.php
@@ -15,6 +15,7 @@
* Annotation class for @Route().
*
* @Annotation
+ * @Target({"CLASS", "METHOD"})
*
* @author Fabien Potencier <fabien@symfony.com>
*/
View
1 src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class UserPassword extends Constraint
{
View
1 src/Symfony/Component/Validator/Constraints/All.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Blank.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Callback.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target("CLASS")
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/CardScheme.php
@@ -17,6 +17,7 @@
* Metadata for the CardSchemeValidator.
*
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class CardScheme extends Constraint
{
View
1 src/Symfony/Component/Validator/Constraints/Choice.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Collection.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Collection/Optional.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Collection/Required.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Count.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Country.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Currency.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Miha Vrhovnik <miha.vrhovnik@pagein.si>
*
View
1 src/Symfony/Component/Validator/Constraints/Date.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/DateTime.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Email.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/EqualTo.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/False.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/File.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/GreaterThan.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/GreaterThanOrEqual.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/GroupSequence.php
@@ -15,6 +15,7 @@
* Annotation for group sequences
*
* @Annotation
+ * @Target("CLASS")
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
2 src/Symfony/Component/Validator/Constraints/GroupSequenceProvider.php
@@ -15,8 +15,8 @@
* Annotation to define a group sequence provider
*
* @Annotation
+ * @Target("CLASS")
*/
class GroupSequenceProvider
{
-
}
View
1 src/Symfony/Component/Validator/Constraints/Iban.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class Iban extends Constraint
{
View
1 src/Symfony/Component/Validator/Constraints/IdenticalTo.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/Image.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @api
*/
View
1 src/Symfony/Component/Validator/Constraints/Ip.php
@@ -18,6 +18,7 @@
* Validates that a value is a valid IP address
*
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
* @author Joseph Bielawski <stloyd@gmail.com>
View
1 src/Symfony/Component/Validator/Constraints/Isbn.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author The Whole Life To Learn <thewholelifetolearn@gmail.com>
*/
View
1 src/Symfony/Component/Validator/Constraints/Issn.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Antonio J. García Lagar <aj@garcialagar.es>
*/
View
1 src/Symfony/Component/Validator/Constraints/Language.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Length.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/LessThan.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/LessThanOrEqual.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/Locale.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Luhn.php
@@ -17,6 +17,7 @@
* Metadata for the LuhnValidator.
*
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class Luhn extends Constraint
{
View
1 src/Symfony/Component/Validator/Constraints/NotBlank.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/NotEqualTo.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/NotIdenticalTo.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
View
1 src/Symfony/Component/Validator/Constraints/NotNull.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Null.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Optional.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
View
1 src/Symfony/Component/Validator/Constraints/Range.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Regex.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Required.php
@@ -13,6 +13,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
View
1 src/Symfony/Component/Validator/Constraints/Time.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/True.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Type.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Url.php
@@ -15,6 +15,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
View
1 src/Symfony/Component/Validator/Constraints/Valid.php
@@ -16,6 +16,7 @@
/**
* @Annotation
+ * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*

2 comments on commit 542d6fa

@staabm
staabm commented on 542d6fa Apr 24, 2014

this information is very usefull, thanks for it! will it also be visibile in the api reference docs?

@jakzal
Symfony member
jakzal commented on 542d6fa Apr 24, 2014

@staabm this is already documented in the reference docs (see applies to section).

Please sign in to comment.
Something went wrong with that request. Please try again.