diff --git a/core/dto.md b/core/dto.md index ca47d83cc14..35f05532603 100644 --- a/core/dto.md +++ b/core/dto.md @@ -213,3 +213,29 @@ final class BookRepresentationProcessor implements ProcessorInterface } } ``` + +## DTO without response + +Sometimes we need DTOs to process something, but we don't need to send an object in response. +Assuming that, we can disable the output for our API Resource using the following code: + +```php +