Selaa lähdekoodia

updated to doctrine changes

Johannes Schmitt 14 vuotta sitten
vanhempi
commit
efcb435268
32 muutettua tiedostoa jossa 32 lisäystä ja 0 poistoa
  1. 1 0
      src/Symfony/Component/Validator/Constraints/All.php
  2. 1 0
      src/Symfony/Component/Validator/Constraints/Blank.php
  3. 1 0
      src/Symfony/Component/Validator/Constraints/Callback.php
  4. 1 0
      src/Symfony/Component/Validator/Constraints/Choice.php
  5. 1 0
      src/Symfony/Component/Validator/Constraints/Collection.php
  6. 1 0
      src/Symfony/Component/Validator/Constraints/Country.php
  7. 1 0
      src/Symfony/Component/Validator/Constraints/Date.php
  8. 1 0
      src/Symfony/Component/Validator/Constraints/DateTime.php
  9. 1 0
      src/Symfony/Component/Validator/Constraints/Email.php
  10. 1 0
      src/Symfony/Component/Validator/Constraints/False.php
  11. 1 0
      src/Symfony/Component/Validator/Constraints/File.php
  12. 1 0
      src/Symfony/Component/Validator/Constraints/GroupSequence.php
  13. 1 0
      src/Symfony/Component/Validator/Constraints/Image.php
  14. 1 0
      src/Symfony/Component/Validator/Constraints/Ip.php
  15. 1 0
      src/Symfony/Component/Validator/Constraints/Language.php
  16. 1 0
      src/Symfony/Component/Validator/Constraints/Locale.php
  17. 1 0
      src/Symfony/Component/Validator/Constraints/Max.php
  18. 1 0
      src/Symfony/Component/Validator/Constraints/MaxLength.php
  19. 1 0
      src/Symfony/Component/Validator/Constraints/Min.php
  20. 1 0
      src/Symfony/Component/Validator/Constraints/MinLength.php
  21. 1 0
      src/Symfony/Component/Validator/Constraints/NotBlank.php
  22. 1 0
      src/Symfony/Component/Validator/Constraints/NotNull.php
  23. 1 0
      src/Symfony/Component/Validator/Constraints/Null.php
  24. 1 0
      src/Symfony/Component/Validator/Constraints/Regex.php
  25. 1 0
      src/Symfony/Component/Validator/Constraints/Time.php
  26. 1 0
      src/Symfony/Component/Validator/Constraints/True.php
  27. 1 0
      src/Symfony/Component/Validator/Constraints/Type.php
  28. 1 0
      src/Symfony/Component/Validator/Constraints/Url.php
  29. 1 0
      src/Symfony/Component/Validator/Constraints/Valid.php
  30. 1 0
      tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintA.php
  31. 1 0
      tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintB.php
  32. 1 0
      tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintC.php

+ 1 - 0
src/Symfony/Component/Validator/Constraints/All.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class All extends Constraint
 {
     public $constraints = array();

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Blank.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Blank extends Constraint
 {
     public $message = 'This value should be blank';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Callback.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Callback extends Constraint
 {
     public $methods;

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Choice.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Choice extends Constraint
 {
     public $choices;

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Collection.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Collection extends Constraint
 {
     public $fields;

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Country.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Country extends Constraint
 {
     public $message = 'This value is not a valid country';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Date.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Date extends Constraint
 {
     public $message = 'This value is not a valid date';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/DateTime.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class DateTime extends Constraint
 {
     public $message = 'This value is not a valid datetime';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Email.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Email extends Constraint
 {
     public $message = 'This value is not a valid email address';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/False.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class False extends Constraint
 {
     public $message = 'This value should be false';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/File.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class File extends Constraint
 {
     public $maxSize = null;

+ 1 - 0
src/Symfony/Component/Validator/Constraints/GroupSequence.php

@@ -14,6 +14,7 @@ namespace Symfony\Component\Validator\Constraints;
 /**
  * Annotation for group sequences
  *
+ * @Annotation
  * @author Bernhard Schussek <bernhard.schussek@symfony.com>
  */
 class GroupSequence

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Image.php

@@ -11,6 +11,7 @@
 
 namespace Symfony\Component\Validator\Constraints;
 
+/** @Annotation */
 class Image extends File
 {
     public $mimeTypes = array(

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Ip.php

@@ -17,6 +17,7 @@ use Symfony\Component\Validator\Constraint;
 /**
  * Validates that a value is a valid IP address
  *
+ * @Annotation
  * @author Bernhard Schussek <bernhard.schussek@symfony.com>
  * @author Joseph Bielawski <stloyd@gmail.com>
  */

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Language.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Language extends Constraint
 {
     public $message = 'This value is not a valid language';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Locale.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Locale extends Constraint
 {
     public $message = 'This value is not a valid locale';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Max.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Max extends Constraint
 {
     public $message = 'This value should be {{ limit }} or less';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/MaxLength.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class MaxLength extends Constraint
 {
     public $message = 'This value is too long. It should have {{ limit }} characters or less';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Min.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Min extends Constraint
 {
     public $message = 'This value should be {{ limit }} or more';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/MinLength.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class MinLength extends Constraint
 {
     public $message = 'This value is too short. It should have {{ limit }} characters or more';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/NotBlank.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class NotBlank extends Constraint
 {
     public $message = 'This value should not be blank';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/NotNull.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class NotNull extends Constraint
 {
     public $message = 'This value should not be null';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Null.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Null extends Constraint
 {
     public $message = 'This value should be null';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Regex.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Regex extends Constraint
 {
     public $message = 'This value is not valid';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Time.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Time extends Constraint
 {
     public $message = 'This value is not a valid time';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/True.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class True extends Constraint
 {
     public $message = 'This value should be true';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Type.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Type extends Constraint
 {
     public $message = 'This value should be of type {{ type }}';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Url.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Url extends Constraint
 {
     public $message = 'This value is not a valid URL';

+ 1 - 0
src/Symfony/Component/Validator/Constraints/Valid.php

@@ -13,6 +13,7 @@ namespace Symfony\Component\Validator\Constraints;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class Valid extends Constraint
 {
     public $traverse = true;

+ 1 - 0
tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintA.php

@@ -4,6 +4,7 @@ namespace Symfony\Tests\Component\Validator\Fixtures;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class ConstraintA extends Constraint
 {
     public $property1;

+ 1 - 0
tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintB.php

@@ -4,6 +4,7 @@ namespace Symfony\Tests\Component\Validator\Fixtures;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class ConstraintB extends Constraint {
 
     public function getTargets()

+ 1 - 0
tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintC.php

@@ -4,6 +4,7 @@ namespace Symfony\Tests\Component\Validator\Fixtures;
 
 use Symfony\Component\Validator\Constraint;
 
+/** @Annotation */
 class ConstraintC extends Constraint
 {
     public $option1;