Skip to content

Commit

Permalink
added @target annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 23, 2014
1 parent 5947eec commit 542d6fa
Show file tree
Hide file tree
Showing 50 changed files with 51 additions and 1 deletion.
Expand Up @@ -17,6 +17,8 @@
* Constraint for the Unique Entity validator
*
* @Annotation
* @Target("CLASS")
*
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
class UniqueEntity extends Constraint
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Routing/Annotation/Route.php
Expand Up @@ -15,6 +15,7 @@
* Annotation class for @Route().
*
* @Annotation
* @Target({"CLASS", "METHOD"})
*
* @author Fabien Potencier <fabien@symfony.com>
*/
Expand Down
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class UserPassword extends Constraint
{
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/All.php
Expand Up @@ -16,6 +16,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Blank.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Callback.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target("CLASS")
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/CardScheme.php
Expand Up @@ -17,6 +17,7 @@
* Metadata for the CardSchemeValidator.
*
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class CardScheme extends Constraint
{
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Choice.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Collection.php
Expand Up @@ -16,6 +16,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Count.php
Expand Up @@ -16,6 +16,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Country.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Currency.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Miha Vrhovnik <miha.vrhovnik@pagein.si>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Date.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/DateTime.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Email.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/EqualTo.php
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/False.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/File.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
Expand Up @@ -15,6 +15,7 @@
* Annotation for group sequences
*
* @Annotation
* @Target("CLASS")
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
Expand Up @@ -15,8 +15,8 @@
* Annotation to define a group sequence provider
*
* @Annotation
* @Target("CLASS")
*/
class GroupSequenceProvider
{

}
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Iban.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class Iban extends Constraint
{
Expand Down
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Image.php
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @api
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Ip.php
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Isbn.php
Expand Up @@ -16,6 +16,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author The Whole Life To Learn <thewholelifetolearn@gmail.com>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Issn.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Antonio J. García Lagar <aj@garcialagar.es>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Language.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Length.php
Expand Up @@ -16,6 +16,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/LessThan.php
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Locale.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Luhn.php
Expand Up @@ -17,6 +17,7 @@
* Metadata for the LuhnValidator.
*
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*/
class Luhn extends Constraint
{
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/NotBlank.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/NotEqualTo.php
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Daniel Holmes <daniel@danielholmes.org>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/NotNull.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Null.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Optional.php
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Range.php
Expand Up @@ -16,6 +16,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Regex.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Required.php
Expand Up @@ -13,6 +13,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Time.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/True.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Type.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Validator/Constraints/Url.php
Expand Up @@ -15,6 +15,7 @@

/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
Expand Down

2 comments on commit 542d6fa

@staabm
Copy link
Contributor

@staabm staabm commented on 542d6fa Apr 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@jakzal
Copy link
Contributor

@jakzal jakzal commented on 542d6fa Apr 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.