@@ -88,9 +88,7 @@ both provide list and type information it is probably better that:
88
88
just mapped properties) are returned.
89
89
* The :class: `Symfony\\ Bridge\\ Doctrine\\ PropertyInfo\\ DoctrineExtractor `
90
90
has priority for type information so that entity metadata is used instead
91
- of type-hinting to provide more accurate type information.
92
-
93
- .. code-block :: php
91
+ of type-hinting to provide more accurate type information::
94
92
95
93
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
96
94
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -373,21 +371,7 @@ ReflectionExtractor
373
371
374
372
Using PHP reflection, the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ ReflectionExtractor `
375
373
provides list, type and access information from setter and accessor methods.
376
- It can also provide return and scalar types for PHP 7+.
377
-
378
- .. note ::
379
-
380
- When using the Symfony framework, this service is automatically registered
381
- when the ``property_info `` feature is enabled:
382
-
383
- .. code-block :: yaml
384
-
385
- # app/config/config.yml
386
- framework :
387
- property_info :
388
- enabled : true
389
-
390
- .. code-block :: php
374
+ It can also provide return and scalar types for PHP 7+::
391
375
392
376
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
393
377
@@ -401,6 +385,18 @@ It can also provide return and scalar types for PHP 7+.
401
385
$reflectionExtractor->isReadable($class, $property);
402
386
$reflectionExtractor->isWritable($class, $property);
403
387
388
+ .. note ::
389
+
390
+ When using the Symfony framework, this service is automatically registered
391
+ when the ``property_info `` feature is enabled:
392
+
393
+ .. code-block :: yaml
394
+
395
+ # app/config/config.yml
396
+ framework :
397
+ property_info :
398
+ enabled : true
399
+
404
400
PhpDocExtractor
405
401
~~~~~~~~~~~~~~~
406
402
0 commit comments