File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Filter options
components/console/helpers Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ Progress Helper
7
7
.. versionadded :: 2.2
8
8
The ``progress `` helper was added in Symfony 2.2.
9
9
10
+ .. versionadded :: 2.3
11
+ The ``setCurrent `` method was added in Symfony 2.3.
12
+
10
13
When executing longer-running commands, it may be helpful to show progress
11
14
information, which updates as your command runs:
12
15
@@ -28,6 +31,12 @@ pass it a total number of units, and advance the progress as your command execut
28
31
29
32
$progress->finish();
30
33
34
+ .. tip ::
35
+
36
+ You can also set the current progress by calling the
37
+ :method: `Symfony\\ Component\\ Console\\ Helper\\ ProgressHelper::setCurrent `
38
+ method.
39
+
31
40
The appearance of the progress output can be customized as well, with a number
32
41
of different levels of verbosity. Each of these displays different possible
33
42
items - like percentage completion, a moving progress bar, or current/total
@@ -70,4 +79,4 @@ To see other available options, check the API documentation for
70
79
if ($i % 100 == 0) {
71
80
$progress->advance();
72
81
}
73
- }
82
+ }
You can’t perform that action at this time.
0 commit comments