File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,12 @@ method, which returns an instance of
334
334
$section1->clear(2);
335
335
// Output is now completely empty!
336
336
337
+ // Allow limiting the height of a console section
338
+ $section1->setMaxHeight(2);
339
+ $section1->writeln('Line1');
340
+ $section1->writeln('Line2');
341
+ $section1->writeln('Line3');
342
+
337
343
return Command::SUCCESS;
338
344
}
339
345
}
@@ -342,6 +348,10 @@ method, which returns an instance of
342
348
343
349
A new line is appended automatically when displaying information in a section.
344
350
351
+ .. versionadded :: 6.2
352
+
353
+ Allow limiting the height of a console section was introduced in Symfony 6.2.
354
+
345
355
Output sections let you manipulate the Console output in advanced ways, such as
346
356
:ref: `displaying multiple progress bars <console-multiple-progress-bars >` which
347
357
are updated independently and :ref: `appending rows to tables <console-modify-rendered-tables >`
You can’t perform that action at this time.
0 commit comments