Skip to content

[WCM] Added stopwatch tag #2630

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 17, 2013
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
6 changes: 6 additions & 0 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ Filters
Tags
----

.. versionadded:: 2.3
The stopwatch tag was added in Symfony 2.3

+---------------------------------------------------+--------------------------------------------------------------------+
| Tag Syntax | Usage |
+===================================================+====================================================================+
Expand All @@ -150,6 +153,9 @@ Tags
| ``{% trans_default_domain language %}`` | This will set the default domain for message catalogues in the |
| | current template |
+---------------------------------------------------+--------------------------------------------------------------------+
| ``{% stopwatch name %}...{% endstopwatch %}`` | This will time the run time of the code inside it and put that on |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to {% stopwatch 'name' %} as per #8719.

| | the timeline of the WebDeveloperBundle. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WebProfilerBundle instead of WebDeveloperBundle ?

+---------------------------------------------------+--------------------------------------------------------------------+

Tests
-----
Expand Down