File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Doctrine defines two types of objects that can listen to Doctrine events:
17
17
listeners and subscribers. Both are very similar, but listeners are a bit
18
18
more straightforward. For more, see `The Event System `_ on Doctrine's website.
19
19
20
+ The Doctrine website also explains all existing events that can be listened to.
21
+
20
22
Configuring the Listener/Subscriber
21
23
-----------------------------------
22
24
@@ -167,6 +169,7 @@ interface and an event method for each event it subscribes to.
167
169
168
170
use Doctrine\Common\EventSubscriber;
169
171
use Doctrine\ORM\Event\LifecycleEventArgs;
172
+ // for doctrine 2.4: Doctrine\Common\Persistence\Event\LifecycleEventArgs;
170
173
use Acme\StoreBundle\Entity\Product;
171
174
172
175
class SearchIndexerSubscriber implements EventSubscriber
@@ -209,5 +212,6 @@ interface and an event method for each event it subscribes to.
209
212
names they subscribe to. Doctrine will then expect methods on the subscriber
210
213
with the names of the subscribed events, just as when using an event listener.
211
214
215
+ For a full reference, see chapter `The Event System ` in the doctrine documentation.
212
216
213
- .. _`The Event System` : http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1 /reference/events.html
217
+ .. _`The Event System` : http://docs.doctrine-project.org/projects/doctrine-orm/en/latest /reference/events.html
You can’t perform that action at this time.
0 commit comments