Skip to content

Commit

Permalink
Change UserListener to App\UserListener
Browse files Browse the repository at this point in the history
Renaming `UserListener` to `App\UserListener` so it is clear to unaware users that it is FCQN

Addressing [note](#1161 (review)) from @ostrolucky.
  • Loading branch information
huebs committed May 14, 2020
1 parent a50e3e6 commit bd8809a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Resources/doc/entity-listeners.rst
Expand Up @@ -18,7 +18,7 @@ Full example:
/**
* @ORM\Entity
* @ORM\EntityListeners({"UserListener"})
* @ORM\EntityListeners({"App\UserListener"})
*/
class User
{
Expand All @@ -31,7 +31,7 @@ Full example:
.. code-block:: yaml
services:
UserListener:
App\UserListener:
tags:
# Minimal configuration below
- { name: doctrine.orm.entity_listener }
Expand All @@ -45,7 +45,7 @@ Full example:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<services>
<service id="UserListener">
<service id="App\UserListener">
<!-- entity_manager attribute is optional -->
<tag name="doctrine.orm.entity_listener" entity_manager="custom" />
</service>
Expand All @@ -61,7 +61,7 @@ definition:
.. code-block:: yaml
services:
UserListener:
App\UserListener:
tags:
-
name: doctrine.orm.entity_listener
Expand All @@ -79,7 +79,7 @@ definition:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<services>
<service id="UserListener">
<service id="App\UserListener">
<!-- entity_manager attribute is optional -->
<!-- method attribute is optional -->
<tag
Expand Down Expand Up @@ -114,7 +114,7 @@ are only instantiated when they are actually used.
.. code-block:: yaml
services:
UserListener:
App\UserListener:
tags:
- { name: doctrine.orm.entity_listener, lazy: true }
Expand All @@ -126,7 +126,7 @@ are only instantiated when they are actually used.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<services>
<service id="UserListener">
<service id="App\UserListener">
<tag name="doctrine.orm.entity_listener" event="preUpdate" entity="App\Entity\User" lazy="true" />
</service>
</services>
Expand Down

0 comments on commit bd8809a

Please sign in to comment.