Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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