Skip to content

Commit ffe0dc0

Browse files
javiereguiluzxabbuh
authored andcommitted
Reworded the tip about property_info and Symfony framework
1 parent 77f6a6d commit ffe0dc0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

components/property_info.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,17 @@ Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\R
351351
provides list, type and access information from setter and accessor methods.
352352
It can also provide return and scalar types for PHP 7+.
353353

354-
This service is automatically registered with the ``property_info`` service in
355-
the Symfony Framework, you just have to enable it in config.yml.
354+
.. note::
355+
356+
When using the Symfony framework, this service is automatically registered
357+
when the ``property_info`` feature is enabled:
356358

357-
.. code-block:: yaml
359+
.. code-block:: yaml
358360
359-
framework:
360-
property_info:
361-
enabled: true
361+
# app/config/config.yml
362+
framework:
363+
property_info:
364+
enabled: true
362365
363366
.. code-block:: php
364367

0 commit comments

Comments
 (0)