Skip to content

Commit

Permalink
Update templating.rst
Browse files Browse the repository at this point in the history
Version 2.7 says that the parameter order has change from twig:lint to lint:twig

me@host:/vagrant/_project$ php app/console twig:lint app/Resources/views
The use of "twig:lint" command is deprecated since version 2.7 and will be removed in 3.0. Use the "lint:twig" instead.
8/8 valid files

me@host:/vagrant/_project$ php app/console lint:twig app/Resources/views
8/8 valid files
  • Loading branch information
alexwybraniec committed Aug 2, 2015
1 parent 40d8d00 commit 38c811f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1601,10 +1601,10 @@ console command:
.. code-block:: bash
# You can check by filename:
$ php app/console twig:lint app/Resources/views/article/recent_list.html.twig
$ php app/console lint:twig app/Resources/views/article/recent_list.html.twig
# or by directory:
$ php app/console twig:lint app/Resources/views
$ php app/console lint:twig app/Resources/views
.. _template-formats:

Expand Down

0 comments on commit 38c811f

Please sign in to comment.