Skip to content

Commit fcfbda6

Browse files
committed
minor #12300 [TwigBridge] Documented the new lint:twig behavior when passing no arguments (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [TwigBridge] Documented the new lint:twig behavior when passing no arguments Fixes #12264. Commits ------- ca8b011 [TwigBridge] Documented the new lint:twig behavior when passing no arguments
2 parents 3d515e4 + ca8b011 commit fcfbda6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

templates.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,18 @@ errors. It's useful to run it before deploying your application to production
563563

564564
.. code-block:: terminal
565565
566-
# check all the templates stored in a directory
567-
$ php bin/console lint:twig templates/
566+
# check all the application templates
567+
$ php bin/console lint:twig
568568
569-
# you can also check individual templates
569+
# you can also check directories and individual templates
570+
$ php bin/console lint:twig templates/email/
570571
$ php bin/console lint:twig templates/article/recent_list.html.twig
571572
573+
.. versionadded:: 4.4
574+
575+
The feature that checks all the application templates when not passing any
576+
arguments to ``lint:twig`` was introduced in Symfony 4.4.
577+
572578
Inspecting Twig Information
573579
~~~~~~~~~~~~~~~~~~~~~~~~~~~
574580

0 commit comments

Comments
 (0)