Skip to content

Conversation

@maelanleborgne
Copy link
Contributor

Previously, the generated code of FooRequestParser::doParse started with // Implement your own logic to validate and parse the request, and return a RemoteEvent object., followed by an empty line, then some code. I think it may be confusing for the developers, some may think the custom logic should live right bellow the comment and that the following code should not be messed with.
I think that changing this to // TODO: Adapt or replace the content of this method to fit your need. might help clear things up.

Additionally I removed an unnecessary check for null in the generated code + fixed the payload conversion method in the fixture.

@jrushlow jrushlow added the Feature New Feature label Apr 17, 2024
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @maelanleborgne! I like the simplification...

@jrushlow jrushlow merged commit 481d6c6 into symfony:main Apr 17, 2024
@jrushlow jrushlow mentioned this pull request Apr 24, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants