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

Deprecate Render #6310

Merged
merged 4 commits into from
Jan 28, 2017
Merged

Deprecate Render #6310

merged 4 commits into from
Jan 28, 2017

Conversation

CarsonF
Copy link
Member

@CarsonF CarsonF commented Jan 27, 2017

Deprecate Render

Render::render is the last non-deprecated method in the class, and it is now just a shortcut to render template to TemplateResponse. As a shortcut, it makes more sense to do the logic in the Base Controller with the other shortcut methods.

It also gets simpler once the globals go away (to be deprecated later in 3.x).


I also changed TemplateResponse to take template name instead of template object.
Name is really the only thing useful from the object since it's already rendered.
Not to mention Twig_Template is marked as internal.

@GwendolenLynch
Copy link
Contributor

I also changed TemplateResponse to take template name instead of template object.

Yeah, I was in two minds about that too, when it was implemented. But TBH the string is all I personally would need from there, so 👍

Copy link
Member

@bobdenotter bobdenotter left a comment

Choose a reason for hiding this comment

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

👍

@bobdenotter bobdenotter merged commit b9f96c3 into bolt:release/3.3 Jan 28, 2017
@GwendolenLynch GwendolenLynch deleted the deprecate-render branch January 28, 2017 15:40
@GwendolenLynch GwendolenLynch added this to the Bolt 3.3 - Feature release milestone Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants