@@ -10,7 +10,7 @@ class, the metadata is defined by the class itself. When validating simple value
1010the metadata must be passed to the validation methods.
1111
1212Class 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
6465The component also provides two file loaders, one to load YAML files and one to
6566load XML files. Use
@@ -146,7 +147,7 @@ Caching
146147
147148Using many loaders to load metadata from different places is convenient, but it
148149can 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 `
150151instance. To solve this problem, you can cache the ``ClassMetadata `` information.
151152
152153The Validator component comes with an
0 commit comments