Skip to content

Commit 3d27f53

Browse files
committed
[#2630] Tweaks for new stopwatch tag - updating version, syntax for using it, and wrong bundle name
1 parent 76e460d commit 3d27f53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/twig_reference.rst

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

137-
.. versionadded:: 2.3
138-
The stopwatch tag was added in Symfony 2.3
137+
.. versionadded:: 2.4
138+
The stopwatch tag was added in Symfony 2.4.
139139

140140
+---------------------------------------------------+--------------------------------------------------------------------+
141141
| Tag Syntax | Usage |
@@ -153,8 +153,8 @@ Tags
153153
| ``{% trans_default_domain language %}`` | This will set the default domain for message catalogues in the |
154154
| | current template |
155155
+---------------------------------------------------+--------------------------------------------------------------------+
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. |
156+
| ``{% stopwatch 'name' %}...{% endstopwatch %}`` | This will time the run time of the code inside it and put that on |
157+
| | the timeline of the WebProfilerBundle. |
158158
+---------------------------------------------------+--------------------------------------------------------------------+
159159

160160
Tests

0 commit comments

Comments
 (0)