Skip to content

use :: instead of .. code-block:: php #11243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions components/property_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ both provide list and type information it is probably better that:
just mapped properties) are returned.
* The :class:`Symfony\\Bridge\\Doctrine\\PropertyInfo\\DoctrineExtractor`
has priority for type information so that entity metadata is used instead
of type-hinting to provide more accurate type information.

.. code-block:: php
of type-hinting to provide more accurate type information::

use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
Expand Down Expand Up @@ -373,21 +371,7 @@ ReflectionExtractor

Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor`
provides list, type and access information from setter and accessor methods.
It can also provide return and scalar types for PHP 7+.

.. note::

When using the Symfony framework, this service is automatically registered
when the ``property_info`` feature is enabled:

.. code-block:: yaml

# app/config/config.yml
framework:
property_info:
enabled: true

.. code-block:: php
It can also provide return and scalar types for PHP 7+::

use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;

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

.. note::

When using the Symfony framework, this service is automatically registered
when the ``property_info`` feature is enabled:

.. code-block:: yaml

# app/config/config.yml
framework:
property_info:
enabled: true

PhpDocExtractor
~~~~~~~~~~~~~~~

Expand Down
4 changes: 1 addition & 3 deletions components/security/authorization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Authentica
voter supports the attributes ``IS_AUTHENTICATED_FULLY``, ``IS_AUTHENTICATED_REMEMBERED``,
and ``IS_AUTHENTICATED_ANONYMOUSLY`` and grants access based on the current
level of authentication, i.e. is the user fully authenticated, or only based
on a "remember-me" cookie, or even authenticated anonymously?

.. code-block:: php
on a "remember-me" cookie, or even authenticated anonymously?::

use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
Expand Down