Skip to content

Commit 26cf8bf

Browse files
committed
minor #8604 Changed the title of a Doctrine article to avoid confusion (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Changed the title of a Doctrine article to avoid confusion Whenever I look for listeners and subscribers in Google, I see this: ![event-listener-subscriber](https://user-images.githubusercontent.com/73419/32549310-3d68ca8a-c489-11e7-89bf-6d712622f925.png) I click on the first result and ... bam!! 💣💥 it's about DOCTRINE listeners/subscribers, not SYMFONY listeners/subscribers. Let's rename it to avoid confusions. Thanks! Commits ------- c93e01e Changed the title of a Doctrine article to avoid confusion
2 parents 799e4f4 + c93e01e commit 26cf8bf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doctrine/event_listeners_subscribers.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
single: Doctrine; Event listeners and subscribers
33

44
.. _doctrine-event-config:
5+
.. _how-to-register-event-listeners-and-subscribers:
56

6-
How to Register Event Listeners and Subscribers
7-
===============================================
7+
Doctrine Event Listeners and Subscribers
8+
========================================
89

910
Doctrine packages have a rich event system that fires events when almost anything
1011
happens inside the system. For you, this means that you can create arbitrary
@@ -217,15 +218,15 @@ For a full reference, see chapter `The Event System`_ in the Doctrine documentat
217218
Lazy loading for Event Listeners
218219
--------------------------------
219220

220-
One subtle difference between listeners and subscribers is that Symfony can load
221+
One subtle difference between listeners and subscribers is that Symfony can load
221222
entity listeners lazily. This means that your listener class will only be fetched
222223
from the service container (and thus be instantiated) once the event it is linked
223224
to actually fires.
224225

225-
Lazy loading might give you a slight performance improvement when your listener
226-
runs for events that rarely fire. Also, it can help you when you run into
226+
Lazy loading might give you a slight performance improvement when your listener
227+
runs for events that rarely fire. Also, it can help you when you run into
227228
*circular dependency issues* that may occur when your listener service in turn
228-
depends on the DBAL connection.
229+
depends on the DBAL connection.
229230

230231
To mark a listener service as lazily loaded, just add the ``lazy`` attribute
231232
to the tag like so:

0 commit comments

Comments
 (0)