File tree 9 files changed +62
-64
lines changed
9 files changed +62
-64
lines changed Original file line number Diff line number Diff line change @@ -280,4 +280,4 @@ strict
280
280
281
281
If true, the validator will also check the type of the input value. Specifically,
282
282
this value is passed to as the third argument to the PHP :phpfunction: `in_array ` method
283
- when checking to see if a value is in the valid choices array.
283
+ when checking to see if a value is in the valid choices array.
Original file line number Diff line number Diff line change @@ -28,18 +28,16 @@ Basic Usage
28
28
29
29
.. code-block :: php-annotations
30
30
31
- // src/Acme/UserBundle/Entity/User.php
32
- namespace Acme\UserBundle\Entity;
33
-
34
- use Symfony\Component\Validator\Constraints as Assert;
35
-
36
- class User
37
- {
38
- /**
39
- * @Assert\Country
40
- */
41
- protected $country;
42
- }
31
+ // src/Acme/UserBundle/Entity/User.php
32
+ use Symfony\Component\Validator\Constraints as Assert;
33
+
34
+ class User
35
+ {
36
+ /**
37
+ * @Assert\Country
38
+ */
39
+ protected $country;
40
+ }
43
41
44
42
.. code-block :: xml
45
43
Original file line number Diff line number Diff line change @@ -102,4 +102,4 @@ checkMX
102
102
If true, then the `checkdnsrr `_ PHP function will be used to check the validity
103
103
of the MX record of the host of the given email.
104
104
105
- .. _`checkdnsrr` : http://www.php.net/manual/en/function.checkdnsrr.php
105
+ .. _`checkdnsrr` : http://www.php.net/manual/en/function.checkdnsrr.php
Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ Basic Usage
31
31
32
32
.. code-block :: php-annotations
33
33
34
- // src/Acme/BlogBundle/Entity/Author.php
35
- namespace Acme\BlogBundle\Entity;
36
-
37
- use Symfony\Component\Validator\Constraints as Assert;
38
-
39
- class Author
40
- {
41
- /**
42
- * @Assert\Ip
43
- */
44
- protected $ipAddress;
45
- }
34
+ // src/Acme/BlogBundle/Entity/Author.php
35
+ namespace Acme\BlogBundle\Entity;
36
+
37
+ use Symfony\Component\Validator\Constraints as Assert;
38
+
39
+ class Author
40
+ {
41
+ /**
42
+ * @Assert\Ip
43
+ */
44
+ protected $ipAddress;
45
+ }
46
46
47
47
.. code-block :: xml
48
48
Original file line number Diff line number Diff line change @@ -28,18 +28,18 @@ Basic Usage
28
28
29
29
.. code-block :: php-annotations
30
30
31
- // src/Acme/UserBundle/Entity/User.php
32
- namespace Acme\UserBundle\Entity;
33
-
34
- use Symfony\Component\Validator\Constraints as Assert;
35
-
36
- class User
37
- {
38
- /**
39
- * @Assert\Language
40
- */
41
- protected $preferredLanguage;
42
- }
31
+ // src/Acme/UserBundle/Entity/User.php
32
+ namespace Acme\UserBundle\Entity;
33
+
34
+ use Symfony\Component\Validator\Constraints as Assert;
35
+
36
+ class User
37
+ {
38
+ /**
39
+ * @Assert\Language
40
+ */
41
+ protected $preferredLanguage;
42
+ }
43
43
44
44
.. code-block :: xml
45
45
Original file line number Diff line number Diff line change @@ -32,18 +32,18 @@ Basic Usage
32
32
33
33
.. code-block :: php-annotations
34
34
35
- // src/Acme/UserBundle/Entity/User.php
36
- namespace Acme\UserBundle\Entity;
37
-
38
- use Symfony\Component\Validator\Constraints as Assert;
39
-
40
- class User
41
- {
42
- /**
43
- * @Assert\Locale
44
- */
45
- protected $locale;
46
- }
35
+ // src/Acme/UserBundle/Entity/User.php
36
+ namespace Acme\UserBundle\Entity;
37
+
38
+ use Symfony\Component\Validator\Constraints as Assert;
39
+
40
+ class User
41
+ {
42
+ /**
43
+ * @Assert\Locale
44
+ */
45
+ protected $locale;
46
+ }
47
47
48
48
.. code-block :: xml
49
49
Original file line number Diff line number Diff line change @@ -99,4 +99,4 @@ charset
99
99
100
100
If the PHP extension "mbstring" is installed, then the PHP function :phpfunction: `mb_strlen `
101
101
will be used to calculate the length of the string. The value of the ``charset ``
102
- option is passed as the second argument to that function.
102
+ option is passed as the second argument to that function.
Original file line number Diff line number Diff line change @@ -156,4 +156,4 @@ message
156
156
157
157
**type **: ``string `` **default **: ``This value is not valid ``
158
158
159
- This is the message that will be shown if this validator fails.
159
+ This is the message that will be shown if this validator fails.
Original file line number Diff line number Diff line change @@ -29,18 +29,18 @@ Basic Usage
29
29
30
30
.. code-block :: php-annotations
31
31
32
- // src/Acme/BlogBundle/Entity/Author.php
33
- namespace Acme\BlogBundle\Entity;
34
-
35
- use Symfony\Component\Validator\Constraints as Assert;
36
-
37
- class Author
38
- {
39
- /**
40
- * @Assert\Url()
41
- */
42
- protected $bioUrl;
43
- }
32
+ // src/Acme/BlogBundle/Entity/Author.php
33
+ namespace Acme\BlogBundle\Entity;
34
+
35
+ use Symfony\Component\Validator\Constraints as Assert;
36
+
37
+ class Author
38
+ {
39
+ /**
40
+ * @Assert\Url()
41
+ */
42
+ protected $bioUrl;
43
+ }
44
44
45
45
.. code-block :: xml
46
46
You can’t perform that action at this time.
0 commit comments