Skip to content

Commit

Permalink
Update doc/03_Interceptor_Proxy_Service_Usage.md
Browse files Browse the repository at this point in the history
Co-authored-by: Christian F. <[email protected]>
  • Loading branch information
herbertroth and Corepex authored Oct 19, 2023
1 parent f7263be commit 78daab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/03_Interceptor_Proxy_Service_Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Overview

`EventProxyService` is a service class that provides functionality to wrap an object's instance with `pre` and `post` method interceptors. These interceptors are respectively triggered right before or after the invocation of the specified methods.
`EventProxyService` is a service class that provides functionality to wrap an object's instance with `pre` and `post` method interceptors. These interceptors are triggered right before or after the invocation of the specified methods.

When an interceptor is triggered, an event is dispatched using the `EventDispatcher`. The event name is composed of the lower case fully-qualified class name of the original object (with backslashes replaced by dots), the lower case method name, and the prefix (`.pre` or `.post`).
When an interceptor is triggered, an event is dispatched using the `EventDispatcher`. The event name is composed of the lowercase fully-qualified class name of the original object (with backslashes replaced by dots), the lowercase method name, and the prefix (`.pre` or `.post`).

For example, for a pre-interceptor on the `save` method of a class named `App\Entity\User`, the event name will be `app.entity.user.save.pre`.

Expand Down

0 comments on commit 78daab0

Please sign in to comment.