Skip to content

Commit a65855f

Browse files
javiereguiluzweaverryan
authored andcommitted
Lots of minor fixes
1 parent 8f4c292 commit a65855f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

components/validator/resources.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class, the metadata is defined by the class itself. When validating simple value
1010
the metadata must be passed to the validation methods.
1111

1212
Class metadata can be defined in a configuration file or in the class itself.
13-
The Validator component retrieves that metadata using a set of loaders.
13+
The Validator component collects that metadata using a set of loaders.
1414

1515
.. seealso::
1616

@@ -54,12 +54,13 @@ In this example, the validation metadata is retrieved executing the
5454

5555
.. tip::
5656

57-
You can call this method multiple times to add several method names. You can
58-
also use :method:`Symfony\\Component\\Validator\\ValidatorBuilder::addMethodMappings`
57+
Instead of calling ``addMethodMapping()`` multiple times to add several
58+
method names, you can also use
59+
:method:`Symfony\\Component\\Validator\\ValidatorBuilder::addMethodMappings`
5960
to set an array of supported method names.
6061

61-
The FileLoaders
62-
---------------
62+
The File Loaders
63+
----------------
6364

6465
The component also provides two file loaders, one to load YAML files and one to
6566
load XML files. Use
@@ -146,7 +147,7 @@ Caching
146147

147148
Using many loaders to load metadata from different places is convenient, but it
148149
can slow down your application because each file needs to be parsed, validated
149-
and converted to a :class:`Symfony\\Component\\Validator\\Mapping\\ClassMetadata`
150+
and converted into a :class:`Symfony\\Component\\Validator\\Mapping\\ClassMetadata`
150151
instance. To solve this problem, you can cache the ``ClassMetadata`` information.
151152

152153
The Validator component comes with an

0 commit comments

Comments
 (0)