diff --git a/templates.rst b/templates.rst index 610b2e163bb..25c0d24e7f6 100644 --- a/templates.rst +++ b/templates.rst @@ -563,12 +563,18 @@ errors. It's useful to run it before deploying your application to production .. code-block:: terminal - # check all the templates stored in a directory - $ php bin/console lint:twig templates/ + # check all the application templates + $ php bin/console lint:twig - # you can also check individual templates + # you can also check directories and individual templates + $ php bin/console lint:twig templates/email/ $ php bin/console lint:twig templates/article/recent_list.html.twig +.. versionadded:: 4.4 + + The feature that checks all the application templates when not passing any + arguments to ``lint:twig`` was introduced in Symfony 4.4. + Inspecting Twig Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~