File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -563,12 +563,18 @@ errors. It's useful to run it before deploying your application to production
563
563
564
564
.. code-block :: terminal
565
565
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
568
568
569
- # you can also check individual templates
569
+ # you can also check directories and individual templates
570
+ $ php bin/console lint:twig templates/email/
570
571
$ php bin/console lint:twig templates/article/recent_list.html.twig
571
572
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
+
572
578
Inspecting Twig Information
573
579
~~~~~~~~~~~~~~~~~~~~~~~~~~~
574
580
You can’t perform that action at this time.
0 commit comments