Skip to content

Commit 32d470b

Browse files
committed
minor #11243 use :: instead of .. code-block:: php (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- use :: instead of .. code-block:: php <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- defe52e use :: instead of .. code-block:: php
2 parents 25c4ae6 + defe52e commit 32d470b

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
@@ -88,9 +88,7 @@ both provide list and type information it is probably better that:
8888
just mapped properties) are returned.
8989
* The :class:`Symfony\\Bridge\\Doctrine\\PropertyInfo\\DoctrineExtractor`
9090
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::
9492

9593
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
9694
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -373,21 +371,7 @@ ReflectionExtractor
373371

374372
Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor`
375373
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+::
391375

392376
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
393377

@@ -401,6 +385,18 @@ It can also provide return and scalar types for PHP 7+.
401385
$reflectionExtractor->isReadable($class, $property);
402386
$reflectionExtractor->isWritable($class, $property);
403387

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+
404400
PhpDocExtractor
405401
~~~~~~~~~~~~~~~
406402

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)