fix deprecation

This commit is contained in:
Dennis Eichhorn 2022-03-22 18:15:09 +01:00
parent 333a91b7f9
commit 7154482850
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@ The `{stringifiable_element}` accepts all supported types from the `StringUtils:
* \JsonSerializable
* array
* \Serializable
* string
* int
* float

View File

@ -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