@@ -92,9 +92,7 @@ both provide list and type information it is probably better that:
92
92
just mapped properties) are returned.
93
93
* The :class: `Symfony\\ Bridge\\ Doctrine\\ PropertyInfo\\ DoctrineExtractor `
94
94
has priority for type information so that entity metadata is used instead
95
- of type-hinting to provide more accurate type information.
96
-
97
- .. code-block :: php
95
+ of type-hinting to provide more accurate type information::
98
96
99
97
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
100
98
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -357,21 +355,7 @@ ReflectionExtractor
357
355
Using PHP reflection, the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ ReflectionExtractor `
358
356
provides list, type and access information from setter and accessor methods.
359
357
It can also give the type of a property, and if it is initializable through the
360
- constructor. It supports return and scalar types for PHP 7.
361
-
362
- .. note ::
363
-
364
- When using the Symfony framework, this service is automatically registered
365
- when the ``property_info `` feature is enabled:
366
-
367
- .. code-block :: yaml
368
-
369
- # config/packages/framework.yaml
370
- framework :
371
- property_info :
372
- enabled : true
373
-
374
- .. code-block :: php
358
+ constructor. It supports return and scalar types for PHP 7::
375
359
376
360
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
377
361
@@ -390,6 +374,18 @@ constructor. It supports return and scalar types for PHP 7.
390
374
// Initializable information
391
375
$reflectionExtractor->isInitializable($class, $property);
392
376
377
+ .. note ::
378
+
379
+ When using the Symfony framework, this service is automatically registered
380
+ when the ``property_info `` feature is enabled:
381
+
382
+ .. code-block :: yaml
383
+
384
+ # config/packages/framework.yaml
385
+ framework :
386
+ property_info :
387
+ enabled : true
388
+
393
389
PhpDocExtractor
394
390
~~~~~~~~~~~~~~~
395
391
0 commit comments