Skip to content

Commit 084173d

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: use :: instead of .. code-block:: php
2 parents f5f41d4 + 32d470b commit 084173d

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

components/property_info.rst

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ both provide list and type information it is probably better that:
9292
just mapped properties) are returned.
9393
* The :class:`Symfony\\Bridge\\Doctrine\\PropertyInfo\\DoctrineExtractor`
9494
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::
9896

9997
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
10098
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -357,21 +355,7 @@ ReflectionExtractor
357355
Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor`
358356
provides list, type and access information from setter and accessor methods.
359357
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::
375359

376360
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
377361

@@ -390,6 +374,18 @@ constructor. It supports return and scalar types for PHP 7.
390374
// Initializable information
391375
$reflectionExtractor->isInitializable($class, $property);
392376

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+
393389
PhpDocExtractor
394390
~~~~~~~~~~~~~~~
395391

components/security/authorization.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Authentica
101101
voter supports the attributes ``IS_AUTHENTICATED_FULLY``, ``IS_AUTHENTICATED_REMEMBERED``,
102102
and ``IS_AUTHENTICATED_ANONYMOUSLY`` and grants access based on the current
103103
level of authentication, i.e. is the user fully authenticated, or only based
104-
on a "remember-me" cookie, or even authenticated anonymously?
105-
106-
.. code-block:: php
104+
on a "remember-me" cookie, or even authenticated anonymously?::
107105

108106
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
109107
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;

0 commit comments

Comments
 (0)