Skip to content

Commit 0708bca

Browse files
javiereguiluzweaverryan
authored andcommitted
Fixed typos
1 parent 730781b commit 0708bca

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

components/validator/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The Validator Component
1111
Installation
1212
------------
1313

14-
You can install the component in 2 different ways:
14+
You can install the component in two different ways:
1515

1616
* :doc:`Install it via Composer </components/using_components>` (``symfony/validator`` on `Packagist`_);
1717
* Use the official Git repository (https://github.com/symfony/Validator).

components/validator/resources.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,13 @@ prefixed classes included in doc block comments (``/** ... */``). For example::
9696
use Symfony\Component\Validator\Constraints as Assert;
9797
// ...
9898

99-
/**
100-
* @Assert\NotBlank()
101-
*/
102-
protected $name;
99+
class User
100+
{
101+
/**
102+
* @Assert\NotBlank()
103+
*/
104+
protected $name;
105+
}
103106

104107
To enable the annotation loader, call the
105108
:method:`Symfony\\Component\\Validator\\ValidatorBuilder::enableAnnotationMapping`
@@ -118,7 +121,7 @@ To disable the annotation loader after it was enabled, call
118121
.. note::
119122

120123
In order to use the annotation loader, you should have installed the
121-
``doctrine/annotations`` and ``doctrine/cache`` packages from _Packagist.
124+
``doctrine/annotations`` and ``doctrine/cache`` packages from `Packagist`_.
122125

123126
Using Multiple Loaders
124127
----------------------
@@ -198,4 +201,4 @@ this custom implementation using
198201
and caches using the ``add*Mapping()`` methods anymore. You now have to
199202
inject them into your custom metadata factory yourself.
200203

201-
.. _Packagist: https://packagist.org
204+
.. _`Packagist`: https://packagist.org

0 commit comments

Comments
 (0)