From 7154482850ffc49ec5e91a16e214293abd23dade Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 22 Mar 2022 18:15:09 +0100 Subject: [PATCH] fix deprecation --- basics/responses.md | 1 - basics/views.md | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/basics/responses.md b/basics/responses.md index 1a80d67..7f15522 100755 --- a/basics/responses.md +++ b/basics/responses.md @@ -16,7 +16,6 @@ The `{stringifiable_element}` accepts all supported types from the `StringUtils: * \JsonSerializable * array -* \Serializable * string * int * float diff --git a/basics/views.md b/basics/views.md index ddfeed1..07f854c 100755 --- a/basics/views.md +++ b/basics/views.md @@ -4,9 +4,9 @@ Views contain the raw information of a result which then depending on the templa ## Implementation -A view must implement `\Serializable` and `\JsonSerializable`. +A view must implement `__serialize/__unserialize` and `\JsonSerializable`. -In case the response header is set to JSON the view will automatically get parsed as JSON object, either by using a the JSON template or by encoding the view. For the JSON serialization the `jsonSerialize()` function will be used in all other cases the `serialize()` function will be used. +In case the response header is set to JSON the view will automatically get parsed as JSON object, either by using a the JSON template or by encoding the view. For the JSON serialization the `jsonSerialize()` function will be used in all other cases the `__serialize()` function will be used. ## Localization