Skip to content

Commit fd0df44

Browse files
committed
Update validator quoting in Yaml files; add value descriptions; fix spaces
1 parent 4755345 commit fd0df44

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

cookbook/doctrine/registration_form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ Next, update your routes. If you're placing your routes inside your bundle
310310
311311
# src/Acme/AccountBundle/Resources/config/routing.yml
312312
account_register:
313-
path: /register
314-
defaults: { _controller: AcmeAccountBundle:Account:register }
313+
path: /register
314+
defaults: { _controller: AcmeAccountBundle:Account:register }
315315
316316
account_create:
317-
path: /register/create
318-
defaults: { _controller: AcmeAccountBundle:Account:create }
317+
path: /register/create
318+
defaults: { _controller: AcmeAccountBundle:Account:create }
319319
320320
.. code-block:: xml
321321

reference/constraints/False.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ method returns **false**:
4545
Acme\BlogBundle\Entity\Author
4646
getters:
4747
stateInvalid:
48-
- "False":
48+
- 'False':
4949
message: You've entered an invalid state.
5050
5151
.. code-block:: php-annotations
@@ -103,8 +103,8 @@ method returns **false**:
103103
104104
.. caution::
105105

106-
When using YAML, be sure to surround ``False`` with quotes (``"False"``)
107-
or else YAML will convert this into a Boolean value.
106+
When using YAML, be sure to surround ``False`` with quotes (``'False'``)
107+
or else YAML will convert this into a ``false`` Boolean value.
108108

109109
Options
110110
-------

reference/constraints/Null.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ of an ``Author`` class exactly equal to ``null``, you could do the following:
2929
Acme\BlogBundle\Entity\Author:
3030
properties:
3131
firstName:
32-
- "Null": ~
32+
- 'Null': ~
3333
3434
.. code-block:: php-annotations
3535
@@ -79,8 +79,8 @@ of an ``Author`` class exactly equal to ``null``, you could do the following:
7979
8080
.. caution::
8181

82-
When using YAML, be sure to surround ``Null`` with quotes (``"Null"``)
83-
or else YAML will convert this into a Null value.
82+
When using YAML, be sure to surround ``Null`` with quotes (``'Null'``)
83+
or else YAML will convert this into a ``null`` value.
8484

8585
Options
8686
-------

reference/constraints/True.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Then you can constrain this method with ``True``.
5050
Acme\BlogBundle\Entity\Author:
5151
getters:
5252
tokenValid:
53-
- "True": { message: "The token is invalid." }
53+
- 'True': { message: "The token is invalid." }
5454
5555
.. code-block:: php-annotations
5656
@@ -118,8 +118,8 @@ If the ``isTokenValid()`` returns false, the validation will fail.
118118

119119
.. caution::
120120

121-
When using YAML, be sure to surround ``True`` with quotes (``"True"``)
122-
or else YAML will convert this into a Boolean value.
121+
When using YAML, be sure to surround ``True`` with quotes (``'True'``)
122+
or else YAML will convert this into a ``true`` Boolean value.
123123

124124
Options
125125
-------

reference/forms/types/options/error_mapping.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error_mapping
44
**type**: ``array`` **default**: ``empty``
55

66
.. versionadded:: 2.1
7-
The ``error_mapping`` option is new to Symfony 2.1.
7+
The ``error_mapping`` option is new to Symfony 2.1.
88

99
This option allows you to modify the target of a validation error.
1010

0 commit comments

Comments
 (0)