8000 Merge pull request #2630 from WouterJ/document_stopwatch_helper · symfony/symfony-docs@76e460d · GitHub
[go: up one dir, main page]

Skip to content

Commit 76e460d

Browse files
committed
Merge pull request #2630 from WouterJ/document_stopwatch_helper
[WCM] Added stopwatch tag
2 parents 8e6f084 + 2d9316f commit 76e460d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/twig_reference.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ Filters
134134
Tags
135135
----
136136

137+
.. versionadded:: 2.3
138+
The stopwatch tag was added in Symfony 2.3
139+
137140
+---------------------------------------------------+--------------------------------------------------------------------+
138141
| Tag Syntax | Usage |
139142
+===================================================+====================================================================+
@@ -150,6 +153,9 @@ Tags
150153
| ``{% trans_default_domain language %}`` | This will set the default domain for message catalogues in the |
151154
| | current template |
152155
+---------------------------------------------------+--------------------------------------------------------------------+
156+
| ``{% stopwatch name %}...{% endstopwatch %}`` | This will time the run time of the code inside it and put that on |
157+
| | the timeline of the WebDeveloperBundle. |
158+
+---------------------------------------------------+--------------------------------------------------------------------+
153159

154160
Tests
155161
-----

0 commit comments

Comments
 (0)
0