Skip to content

Commit

Permalink
Merge pull request #1519 from javiereguiluz/fix_docs
Browse files Browse the repository at this point in the history
[Docs] Fix some syntax issues in code blocks
  • Loading branch information
SenseException authored May 4, 2022
2 parents 527970d + 3f37b8d commit 377cd8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Resources/doc/entity-listeners.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Full example:

.. configuration-block::

.. code-block:: annotation
.. code-block:: php-annotations
<?php
// User.php
Expand All @@ -28,7 +28,7 @@ Full example:
// ....
}
.. code-block:: attribute
.. code-block:: php-attributes
<?php
// User.php
Expand All @@ -54,6 +54,7 @@ Full example:
- { name: doctrine.orm.entity_listener }
# Or, optionally, you can give the entity manager name as below
#- { name: doctrine.orm.entity_listener, entity_manager: custom }
.. code-block:: xml
<?xml version="1.0" ?>
Expand Down Expand Up @@ -88,6 +89,7 @@ definition:
entity_manager: custom
# method attribute is optional
method: validateEmail
.. code-block:: xml
<?xml version="1.0" ?>
Expand Down Expand Up @@ -119,7 +121,6 @@ See also
https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners
for more info on entity listeners and the resolver required by Symfony.


Lazy Entity Listeners
---------------------

Expand Down

0 comments on commit 377cd8d

Please sign in to comment.