From 44a680406c8949edd8ba657820e5396d5a8e0641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Thu, 5 Jul 2018 17:33:46 +0200 Subject: [PATCH 1/2] Documentation for the _api_persist flag --- core/events.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/events.md b/core/events.md index bdfa18f60fb..caaceb412e1 100644 --- a/core/events.md +++ b/core/events.md @@ -109,8 +109,7 @@ Constant | Event | Priority | Some of those built-in listeners can be enabled/disabled by setting request attributes ([for instance in the `defaults` attribute of an operation](operations.md#recommended-method)): -Listener | Parameter | Values | Default | Description | -----------------------|----------------|----------------|---------|----------------------------------------| -`ReadListener` | `_api_receive` | `true`/`false` | `true` | set to `false` to disable the listener | -`DeserializeListener` | `_api_receive` | `true`/`false` | `true` | set to `false` to disable the listener | -`ValidateListener` | `_api_receive` | `true`/`false` | `true` | set to `false` to disable the listener | +Attribute | Type | Default | Description | +---------------|--------|---------|---------------------------------------------------------------------------| +`_api_receive` | `bool` | `true` | Disables the `ReadListener`, `DeserializeListener` and `ValidateListener` | +`_api_persist` | `bool` | `true` | Disables the `WriteLister` | From 5415ecf36b925900c8d836b38c223e9ac078d634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 16 Jul 2018 22:06:46 +0200 Subject: [PATCH 2/2] Enables or disables --- core/events.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/events.md b/core/events.md index caaceb412e1..b4e3a04b80e 100644 --- a/core/events.md +++ b/core/events.md @@ -109,7 +109,7 @@ Constant | Event | Priority | Some of those built-in listeners can be enabled/disabled by setting request attributes ([for instance in the `defaults` attribute of an operation](operations.md#recommended-method)): -Attribute | Type | Default | Description | ----------------|--------|---------|---------------------------------------------------------------------------| -`_api_receive` | `bool` | `true` | Disables the `ReadListener`, `DeserializeListener` and `ValidateListener` | -`_api_persist` | `bool` | `true` | Disables the `WriteLister` | +Attribute | Type | Default | Description | +---------------|--------|---------|--------------------------------------------------------------------------------------| +`_api_receive` | `bool` | `true` | Enables or disables the `ReadListener`, `DeserializeListener` and `ValidateListener` | +`_api_persist` | `bool` | `true` | Enables or disables `WriteLister` |