@@ -44,14 +44,14 @@ This interface requires four methods:
4444
4545Start by creating the class and these methods. Next, you'll learn how to fill each in::
4646
47- // src/Form/TypeGuesser/PHPDocTypeGuesser .php
47+ // src/Form/TypeGuesser/PhpDocTypeGuesser .php
4848 namespace App\Form\TypeGuesser;
4949
5050 use Symfony\Component\Form\FormTypeGuesserInterface;
5151 use Symfony\Component\Form\Guess\TypeGuess;
5252 use Symfony\Component\Form\Guess\ValueGuess;
5353
54- class PHPDocTypeGuesser implements FormTypeGuesserInterface
54+ class PhpDocTypeGuesser implements FormTypeGuesserInterface
5555 {
5656 public function guessType(string $class, string $property): ?TypeGuess
5757 {
@@ -90,9 +90,9 @@ The ``TypeGuess`` constructor requires three options:
9090 type with the highest confidence is used.
9191
9292With this knowledge, you can implement the ``guessType() `` method of the
93- ``PHPDocTypeGuesser ``::
93+ ``PhpDocTypeGuesser ``::
9494
95- // src/Form/TypeGuesser/PHPDocTypeGuesser .php
95+ // src/Form/TypeGuesser/PhpDocTypeGuesser .php
9696 namespace App\Form\TypeGuesser;
9797
9898 use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
@@ -102,7 +102,7 @@ With this knowledge, you can implement the ``guessType()`` method of the
102102 use Symfony\Component\Form\Guess\Guess;
103103 use Symfony\Component\Form\Guess\TypeGuess;
104104
105- class PHPDocTypeGuesser implements FormTypeGuesserInterface
105+ class PhpDocTypeGuesser implements FormTypeGuesserInterface
106106 {
107107 public function guessType(string $class, string $property): ?TypeGuess
108108 {
@@ -188,7 +188,7 @@ and tag it with ``form.type_guesser``:
188188 services :
189189 # ...
190190
191- App\Form\TypeGuesser\PHPDocTypeGuesser :
191+ App\Form\TypeGuesser\PhpDocTypeGuesser :
192192 tags : [form.type_guesser]
193193
194194 .. code-block :: xml
@@ -201,7 +201,7 @@ and tag it with ``form.type_guesser``:
201201 https://symfony.com/schema/dic/services/services-1.0.xsd" >
202202
203203 <services >
204- <service id =" App\Form\TypeGuesser\PHPDocTypeGuesser " >
204+ <service id =" App\Form\TypeGuesser\PhpDocTypeGuesser " >
205205 <tag name =" form.type_guesser" />
206206 </service >
207207 </services >
@@ -210,9 +210,9 @@ and tag it with ``form.type_guesser``:
210210 .. code-block :: php
211211
212212 // config/services.php
213- use App\Form\TypeGuesser\PHPDocTypeGuesser ;
213+ use App\Form\TypeGuesser\PhpDocTypeGuesser ;
214214
215- $container->register(PHPDocTypeGuesser ::class)
215+ $container->register(PhpDocTypeGuesser ::class)
216216 ->addTag('form.type_guesser')
217217 ;
218218
@@ -223,12 +223,12 @@ and tag it with ``form.type_guesser``:
223223 :method: `Symfony\\ Component\\ Form\\ FormFactoryBuilder::addTypeGuessers ` of
224224 the ``FormFactoryBuilder `` to register new type guessers::
225225
226- use App\Form\TypeGuesser\PHPDocTypeGuesser ;
226+ use App\Form\TypeGuesser\PhpDocTypeGuesser ;
227227 use Symfony\Component\Form\Forms;
228228
229229 $formFactory = Forms::createFormFactoryBuilder()
230230 // ...
231- ->addTypeGuesser(new PHPDocTypeGuesser ())
231+ ->addTypeGuesser(new PhpDocTypeGuesser ())
232232 ->getFormFactory();
233233
234234 // ...
0 commit comments