Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:webhook] Rephrase comments to be more explicit + minor improvement of generated code #1512

Merged
merged 1 commit into from Apr 17, 2024

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
7 checks passed
@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.

None yet

2 participants