Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Make AbstractController::render() able to deal with forms and deprecate renderForm() #46854

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

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? yes
Tickets -
License MIT
Doc PR -

No need for AbstractController::renderForm() when AbstractController::render() can do it!

@HeahDude
Copy link
Contributor

HeahDude commented Jul 5, 2022

With this change the API becomes implicit and too magical, 👎 from me.

@fabpot
Copy link
Member

fabpot commented Jul 5, 2022

I suggested this change and I think it makes a lot of sense. The current method looks weird to me as it does not render a form ; it’s very confusing.

@HeahDude
Copy link
Contributor

HeahDude commented Jul 5, 2022

I see the point, maybe better phpdoc blocks would help describing what these methods do?

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

After discussing with Nicolas, I admit I was already -1 on the previous implementation, so it might be better this way indeed.

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

UPGRADE note missing :)

@nicolas-grekas
Copy link
Member Author

UPGRADEd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants