`.
diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst
index 1aca88bb444..5b8cacddeb5 100644
--- a/reference/dic_tags.rst
+++ b/reference/dic_tags.rst
@@ -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
diff --git a/templating/PHP.rst b/templating/PHP.rst
index bc9a0d61149..d0b218292b6 100644
--- a/templating/PHP.rst
+++ b/templating/PHP.rst
@@ -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
@@ -17,6 +23,12 @@ templates with PHP more powerful.
Rendering PHP 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.
+
If you want to use the PHP templating engine, first install the templating component:
.. code-block:: terminal
diff --git a/templating/hinclude.rst b/templating/hinclude.rst
index 675fd268607..396dec13643 100644
--- a/templating/hinclude.rst
+++ b/templating/hinclude.rst
@@ -67,7 +67,7 @@ in your application configuration:
# config/packages/framework.yaml
framework:
# ...
- templating:
+ fragments:
hinclude_default_template: hinclude.html.twig
.. code-block:: xml
@@ -83,7 +83,7 @@ in your application configuration:
-
+
@@ -92,13 +92,19 @@ in your application configuration:
// config/packages/framework.php
$container->loadFromExtension('framework', [
// ...
- 'templating' => [
+ 'fragments' => [
'hinclude_default_template' => [
'hinclude.html.twig',
],
],
]);
+.. versionadded:: 4.3
+
+ The ``framework.fragments.hinclude_default_template`` option was introduced
+ in Symfony 4.3. In previous Symfony versions it was called
+ ``framework.templating.hinclude_default_template``.
+
You can define default templates per ``render()`` function (which will override
any global default template that is defined):
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy