Skip to content

Commit f121b17

Browse files
committed
Update event listener configuration for API Platform 4.0
Updated the documentation to reflect the requirement of `use_symfony_listeners: true` for activating event listeners in API Platform 4.0. Also reformatted existing notes for better clarity and added separation lines for improved readability.
1 parent adae1bb commit f121b17

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/events.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# The Event System
22

3-
In API Platform 3.2 you may need `event_listeners_backward_compatibility_layer: true` to keep event listeners activated.
3+
> [!WARNING]
4+
> In API Platform 4.0 with Symfony, you need `use_symfony_listeners: true` to activate event listeners.
45
5-
Note: using Kernel event with API Platform should be mostly limited to tweaking the generated HTTP response. Also, GraphQL is **not supported**.
6-
[For most use cases, better extension points, working both with REST and GraphQL, are available](extending.md).
6+
---
7+
8+
> [!NOTE]
9+
> Using Kernel event with API Platform should be mostly limited to tweaking the generated HTTP response. Also, GraphQL is **not supported**.
710
811
API Platform Core implements the [Action-Domain-Responder](https://github.com/pmjones/adr) pattern. This implementation
912
is covered in depth in the [Creating custom operations and controllers](operations.md#creating-custom-operations-and-controllers)

0 commit comments

Comments
 (0)