From 3abd6e43db0354a14f515097d4a88a3605415ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neboj=C5=A1a=20Kamber?= Date: Tue, 9 Jul 2019 14:15:28 +0200 Subject: [PATCH] Typo: non-existent StopWatch method `lapse` StopWatch component doesn't have `lapse` method, but has `lap` method. I think this was just a typo --- profiler.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler.rst b/profiler.rst index 9745bc8c3bf..e9b146831c6 100644 --- a/profiler.rst +++ b/profiler.rst @@ -97,14 +97,14 @@ which provides utilities to profile code and displays the results on the When using :ref:`autowiring `, type-hint any argument with the :class:`Symfony\\Component\\Stopwatch\\Stopwatch` class and Symfony will -inject the Stopwatch service. Then, use the ``start()``, ``lapse()`` and +inject the Stopwatch service. Then, use the ``start()``, ``lap()`` and ``stop()`` methods to measure time:: // a user signs up and the timer starts... $stopwatch->start('user-sign-up'); // ...do things to sign up the user... - $stopwatch->lapse('user-sign-up'); + $stopwatch->lap('user-sign-up'); // ...the sign up process is finished $stopwatch->stop('user-sign-up');