8000 Update templating.rst · symfony/symfony-docs@8f26ed5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f26ed5

Browse files
committed
Update templating.rst
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 Also fixed example in paragraph above.
1 parent 40d8d00 commit 8f26ed5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/templating.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ automatically:
12241224

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

@@ -1595,16 +1595,16 @@ is ``true``. By default this means that the variables will be dumped in the
15951595
Syntax Checking
15961596
---------------
15971597

1598-
You can check for syntax errors in Twig templates using the ``twig:lint``
1598+
You can check for syntax errors in Twig templates using the ``lint:twig``
15991599
console command:
16001600

16011601
.. code-block:: bash
16021602
16031603
# You can check by filename:
1604-
$ php app/console twig:lint app/Resources/views/article/recent_list.html.twig
1604+
$ php app/console lint:twig app/Resources/views/article/recent_list.html.twig
16051605
16061606
# or by directory:
1607-
$ php app/console twig:lint app/Resources/views
1607+
$ php app/console lint:twig app/Resources/views
16081608
16091609
.. _template-formats:
16101610

0 commit comments

Comments
 (0)
0