Skip to content

Commit 9c85e79

Browse files
committed
minor #8125 Add information for enable property_info service (Kleinast, javiereguiluz)
This PR was submitted for the 3.3 branch but it was merged into the 2.8 branch instead (closes #8125). Discussion ---------- Add information for enable property_info service add code for enable property_info service because service is not available by default in symfony full stack. Also, I don't really understand why the property_info is mentionned in ReflectionExtractor section because property_info service lead to Symfony\Component\PropertyInfo\PropertyInfoExtractor and not the ReflectionExtractor class. Commits ------- ffe0dc0 Reworded the tip about property_info and Symfony framework 77f6a6d remove useless space 01563dd Add information for enable property_info service
2 parents ebcc094 + ffe0dc0 commit 9c85e79

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

components/property_info.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +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.
354+
.. note::
355+
356+
When using the Symfony framework, this service is automatically registered
357+
when the ``property_info`` feature is enabled:
358+
359+
.. code-block:: yaml
360+
361+
# app/config/config.yml
362+
framework:
363+
property_info:
364+
enabled: true
356365
357366
.. code-block:: php
358367

0 commit comments

Comments
 (0)