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
Prev Previous commit
Next Next commit
Finish the PR
  • Loading branch information
javiereguiluz committed Apr 8, 2019
commit 2dc7e829501a66731f9c47572b39c2f5072a06c3
6 changes: 6 additions & 0 deletions templating/PHP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,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
Expand Down
12 changes: 9 additions & 3 deletions 8000 templating/hinclude.rst
5F5E
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ in your application configuration:
# config/packages/framework.yaml
framework:
# ...
templating:
fragments:
hinclude_default_template: hinclude.html.twig

.. code-block:: xml
Expand All @@ -83,7 +83,7 @@ in your application configuration:

<!-- ... -->
<framework:config>
<framework:templating hinclude-default-template="hinclude.html.twig"/>
<framework:fragments hinclude-default-template="hinclude.html.twig"/>
</framework:config>
</container>

Expand All @@ -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):

Expand Down
0