From 3938b0a30c082173ca96045d4a813ebcf191e3dd Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 30 Nov 2019 13:00:09 +0100 Subject: [PATCH] Mention twig/extensions is not for Twig 3 As twig/extensions is obsolete according to: https://github.com/twigphp/Twig-extensions/pull/258 And not compatible with Twig 3, let prevent developers for running a dead end command. --- templating/twig_extension.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templating/twig_extension.rst b/templating/twig_extension.rst index 068acee63b5..74e80fd8497 100644 --- a/templating/twig_extension.rst +++ b/templating/twig_extension.rst @@ -11,7 +11,8 @@ Before writing your own Twig extension, check if the filter/function that you need is already implemented in the `default Twig filters and functions`_ or the :doc:`Twig filters and functions added by Symfony `. Check also the `official Twig extensions`_, which add commonly needed filters -and functions and can be installed in your application as follows: +and functions and can be installed in your application as follows (only needed +if you're using Twig 1 or 2): .. code-block:: terminal