feat(http): Wire Validator and Serializer in http request dispatcher - #63558
Draft
CarlSchwan wants to merge 3 commits into
Draft
feat(http): Wire Validator and Serializer in http request dispatcher#63558CarlSchwan wants to merge 3 commits into
CarlSchwan wants to merge 3 commits into
Conversation
This is a very simple wrapper. This expose most interesting features of the symfony serializer to serialize and deserialize DTO objects. This can be used in combination with the new Entity system from AppFramework ORM. Note that to make full use of this, this still needs to be hooked in the http dispatcher and http response handling to remove some boilerplate. Also another next step is doing the same with the symfony validation component to validate both the ORM entities and the serialized/deserialized objects. Assisted-by: ClaudeCode:claude-sonnet-5 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Allow to write the following
class PersonController extends Controller {
public function create(#[RequestPayload] PersonDto $person): DataResponse {
// $person is already deserialized and valid at this point
}
}
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
CarlSchwan
requested review from
icewind1991,
provokateurin,
salmart-dev and
sorbaugh
and removed request for
a team
August 25, 2026 08:39
CarlSchwan
marked this pull request as draft
August 25, 2026 09:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow to write the following
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)