Skip to content

Commit df06dd6

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: parameter name typo [#8603] Rewording [BrowserKit] Updated Project URI of Goutte Changed the title of a Doctrine article to avoid confusion Reworded the introduction of event listeners article
2 parents 4d40e3d + 91a5132 commit df06dd6

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

components/browser_kit.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,4 @@ Learn more
232232
* :doc:`/components/dom_crawler`
233233

234234
.. _`Packagist`: https://packagist.org/packages/symfony/browser-kit
235-
.. _`Goutte`: https://github.com/fabpot/Goutte
235+
.. _`Goutte`: https://github.com/FriendsOfPHP/Goutte

doctrine/event_listeners_subscribers.rst

+7-6
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:

event_dispatcher.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ During the execution of a Symfony application, lots of event notifications are
99
triggered. Your application can listen to these notifications and respond to
1010
them by executing any piece of code.
1111

12-
Internal events provided by Symfony itself are defined in the
13-
:class:`Symfony\\Component\\HttpKernel\\KernelEvents` class. Third-party bundles
14-
and libraries also trigger lots of events and your own application can trigger
15-
:doc:`custom events </components/event_dispatcher>`.
12+
Symfony triggers several :doc:`events related to the kernel </reference/events>`
13+
while processing the HTTP Request. Third-party bundles may also dispatch events, and
14+
you can even dispatch :doc:`custom events </components/event_dispatcher>` from your
15+
own code.
1616

1717
All the examples shown in this article use the same ``KernelEvents::EXCEPTION``
1818
event for consistency purposes. In your own application, you can use any event

security/form_login.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ several ways.
3434
Changing the default Page
3535
~~~~~~~~~~~~~~~~~~~~~~~~~
3636

37-
Define the ``default_security_target`` option to change the page where the user
37+
Define the ``default_target_path`` option to change the page where the user
3838
is redirected to if no previous page was stored in the session. The value can be
3939
a relative/absolute URL or a Symfony route name:
4040

0 commit comments

Comments
 (0)