Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

The templating-related shortcuts in the base controller should be usable without the Templating component #15502

Copy link
Copy link
Closed
@stof

Description

@stof
Issue body actions

In Symfony 2.7, we made it possible to use most features of Symfony without enabling the templating component (assuming you don't use a bundle relying on them of course).
However, we have 3 shortcut methods in the base controller which are not compatible with such setup and force the usage of the templating component:

  • render
  • renderView
  • stream

Most projects based on Symfony are probably relying on them, as this is the documented way to render templates.

All of them can be implemented on top of Twig directly quite easily. I suggest doing this in 2.8 in case the templating component is not available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.