Skip to content

Commit 6c1125b

Browse files
authored
Merge pull request #437 from meyerbaptiste/disabling_listeners
Add documentation to enable/disable some listeners
2 parents df95d59 + 38d97fd commit 6c1125b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/events.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,12 @@ Constant | Event | Priority |
103103
`POST_WRITE` | `kernel.view` | 31 |
104104
`PRE_RESPOND` | `kernel.view` | 9 |
105105
`POST_RESPOND` | `kernel.response` | 0 |
106+
107+
Some of those built-in listeners can be enabled/disabled by setting request attributes ([for instance in the `defaults`
108+
attribute of an operation](operations.md#creating-custom-operations-and-controllers)):
109+
110+
Listener | Parameter | Values | Default | Description |
111+
----------------------|----------------|----------------|---------|----------------------------------------|
112+
`ReadListener` | `_api_receive` | `true`/`false` | `true` | set to `false` to disable the listener |
113+
`DeserializeListener` | `_api_receive` | `true`/`false` | `true` | set to `false` to disable the listener |
114+
`ValidateListener``_api_receive` | `true`/`false` | `true` | set to `false` to disable the listener |

0 commit comments

Comments
 (0)