Skip to content

Commit e13fb5b

Browse files
committed
Remove mention of lazy entity listeners
1 parent 79dd830 commit e13fb5b

1 file changed

Lines changed: 1 addition & 30 deletions

File tree

docs/en/entity-listeners.rst

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -121,33 +121,4 @@ back on the ``__invoke()`` method.
121121

122122
See also
123123
https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners
124-
for more info on entity listeners and the resolver required by Symfony.
125-
126-
Lazy Entity Listeners
127-
---------------------
128-
129-
You can use the ``lazy`` attribute on the tag to make sure the listener services
130-
are only instantiated when they are actually used.
131-
132-
.. configuration-block::
133-
134-
.. code-block:: yaml
135-
136-
services:
137-
App\UserListener:
138-
tags:
139-
- { name: doctrine.orm.entity_listener, lazy: true }
140-
141-
.. code-block:: xml
142-
143-
<?xml version="1.0" ?>
144-
145-
<container xmlns="http://symfony.com/schema/dic/services"
146-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
147-
148-
<services>
149-
<service id="App\UserListener">
150-
<tag name="doctrine.orm.entity_listener" event="preUpdate" entity="App\Entity\User" lazy="true" />
151-
</service>
152-
</services>
153-
</container>
124+
for more info on entity listeners and the resolver required by Symfony.

0 commit comments

Comments
 (0)