Skip to content

[Twig] Remove obsolete comments about Twig versions #17711

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

Merged
merged 1 commit into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 0 additions & 4 deletions components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,6 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
// ...
->getFormFactory();

.. versionadded:: 1.30

The ``Twig\RuntimeLoader\FactoryRuntimeLoader`` was introduced in Twig 1.30.

The exact details of your `Twig Configuration`_ will vary, but the goal is
always to add the :class:`Symfony\\Bridge\\Twig\\Extension\\FormExtension`
to Twig, which gives you access to the Twig functions for rendering forms.
Expand Down
8 changes: 4 additions & 4 deletions reference/configuration/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ autoescape_service

**type**: ``string`` **default**: ``null``

As of Twig 1.17, the escaping strategy applied by default to the template is
determined during compilation time based on the filename of the template. This
means for example that the contents of a ``*.html.twig`` template are escaped
for HTML and the contents of ``*.js.twig`` are escaped for JavaScript.
The escaping strategy applied by default to the template is determined during
compilation time based on the filename of the template. This means for example
that the contents of a ``*.html.twig`` template are escaped for HTML and the
contents of ``*.js.twig`` are escaped for JavaScript.

This option allows to define the Symfony service which will be used to determine
the default escaping applied to the template.
Expand Down
4 changes: 0 additions & 4 deletions templating/twig_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ this command to confirm that your new filter was successfully registered:
Creating Lazy-Loaded Twig Extensions
------------------------------------

.. versionadded:: 1.35

Support for lazy-loaded extensions was introduced in Twig 1.35.0 and 2.4.4.

Including the code of the custom filters/functions in the Twig extension class
is the simplest way to create extensions. However, Twig must initialize all
extensions before rendering any template, even if the template doesn't use an
Expand Down