@@ -23,11 +23,11 @@ You can install the component in several different ways:
23
23
Usage
24
24
-----
25
25
26
- Imagine we have a ``Person `` class which has 2 options: ``firstName `` and
27
- ``lastName ``. We are going to handles these options with the OptionsResolver
26
+ Imagine you have a ``Person `` class which has 2 options: ``firstName `` and
27
+ ``lastName ``. These options are going to be handled by the OptionsResolver
28
28
Component.
29
29
30
- First of all, we create some basic skeleton::
30
+ First of all, you should create some basic skeleton::
31
31
32
32
class Person
33
33
{
@@ -38,11 +38,11 @@ First of all, we create some basic skeleton::
38
38
}
39
39
}
40
40
41
- Now, we should handle the ``$options `` parameter with the OptionsResolver
42
- class. We just instantiate a
43
- :class: ` Symfony \\ Component \\ OptionsResolver\\ OptionsResolver ` class and let it
44
- resolve the options by calling
45
- :method: `Symfony\\ Component\\ OptionsResolver::resolve `::
41
+ Now, you should handle the ``$options `` parameter with the
42
+ : class: ` Symfony \\ Component \\ OptionsResolver \\ OptionsResolver ` class. To do
43
+ this, you should instantiate the `` OptionsResolver `` class and let it resolve
44
+ the options by calling
45
+ :method: `Symfony\\ Component\\ OptionsResolver\\ OptionsResolver ::resolve `::
46
46
47
47
use Symfony\Component\OptionsResolver\OptionsResolver;
48
48
@@ -269,7 +269,7 @@ Normalize the Options
269
269
---------------------
270
270
271
271
Some values needs to be normalized before you can use them. For instance, the
272
- ``firstName `` should always start with an uppercase letter. To do that, we can
272
+ ``firstName `` should always start with an uppercase letter. To do that, you can
273
273
write normalizers. These Closures will be executed after all options are
274
274
passed and return the normalized value. You can configure these normalizers by
275
275
calling
0 commit comments