8000 Documented the deprecation of the Templating component by javiereguiluz · Pull Request #11231 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Documented the deprecation of the Templating component #11231

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Documented the deprecation of the Templating component
  • Loading branch information
javiereguiluz committed Mar 27, 2019
commit a31dd8db7e38634d21e4d067929c4f12d95c539a
6 changes: 6 additions & 0 deletions form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ link for details), create a ``shipping_widget`` block to handle this:
],
]);

.. deprecated:: 4.3

The integration of the Templating component in FrameworkBundle has been
deprecated since version 4.3 and will be removed in 5.0. Form theming with
PHP templates will no longer be supported and you'll need to use Twig instead.

Using the Field Type
--------------------

Expand Down
6 changes: 6 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,12 @@ resources

**type**: ``string[]`` **default**: ``['FrameworkBundle:Form']``

.. deprecated:: 4.3

The integration of the Templating component in FrameworkBundle has been
deprecated since version 4.3 and will be removed in 5.0. Form theming with
PHP templates will no longer be supported and you'll need to use Twig instead.

A list of all resources for form theming in PHP. This setting is not required
if you're :ref:`using the Twig format for your themes <forms-theming-twig>`.

Expand Down
5 changes: 5 additions & 0 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,11 @@ templating.helper

**Purpose**: Make your service available in PHP templates

.. deprecated:: 4.3

The ``templating.helper`` tag is deprecated since version 4.3 and will be
removed in 5.0; use Twig instead.

To enable a custom template helper, add it as a regular service in one
of your configuration, tag it with ``templating.helper`` and define an
``alias`` attribute (the helper will be accessible via this alias in the
Expand Down
6 changes: 6 additions & 0 deletions templating/PHP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
How to Use PHP instead of Twig for Templates
============================================

.. deprecated:: 4.3

The integration of the Templating component in FrameworkBundle has been
deprecated since version 4.3 and will be removed in 5.0. PHP templates will
no longer be supported and you'll need to use Twig instead.

Symfony defaults to Twig for its template engine, but you can still use
plain PHP code if you want. Both templating engines are supported equally in
Symfony. Symfony adds some nice features on top of PHP to make writing
Expand Down
0