-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Stopwatch] Describe retrieval of StopwatchEvent #3539
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
8000 form>Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,14 @@ microtime by yourself. Instead, use the simple | |
// ... some code goes here | ||
$event = $stopwatch->stop('eventName'); | ||
|
||
The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved from :method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`, :method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`, :method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` and :method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent` | ||
.. versionadded:: 2.5 | ||
The ``getEvent()`` method was introduced | ||
|
||
The :class:`Symfony\\Component\\Stopwatch\StopwatchEvent` object can be retrieved from the | ||
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::start`, | ||
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::stop`, | ||
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::lap` and | ||
:method:`Symfony\\Component\\Stopwatch\\Stopwatch::getEvent` methods. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When we use
Also, can you add line breaks so that we have a line break after the first word that crosses the 72nd character? With these long We usually also add a Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the Thus, I'd add this above the new paragraph: .. versionadded:: 2.5
The ``getEvent()`` method was introduced in Symfony 2.5. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, let's add the |
||
You can also provide a category name to an event:: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"[...] was introduced in Symfony 2.5"