Skip to content

Commit

Permalink
minor #5591 Update templating.rst: lint:twig instead of twig:lint in …
Browse files Browse the repository at this point in the history
…2.7 (alexwybraniec)

This PR was merged into the 2.7 branch.

Discussion
----------

Update templating.rst: lint:twig instead of twig:lint in 2.7

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

Commits
-------

8f26ed5 Update templating.rst
  • Loading branch information
xabbuh committed Aug 5, 2015
2 parents 40d8d00 + 8f26ed5 commit c280be0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ automatically:

.. versionadded:: 2.6
The global ``app.security`` variable (or the ``$app->getSecurity()``
method in PHP templates) is deprecated as of Symfony 2.6. Use ``app.user``
method in PHP templates) is deprecated as of Symfony 2.6. Use ``app.user``
(``$app->getUser()``) and ``is_granted()`` (``$view['security']->isGranted()``)
instead.

Expand Down Expand Up @@ -1595,16 +1595,16 @@ is ``true``. By default this means that the variables will be dumped in the
Syntax Checking
---------------

You can check for syntax errors in Twig templates using the ``twig:lint``
You can check for syntax errors in Twig templates using the ``lint:twig``
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 c280be0

Please sign in to comment.