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
334334 $section1->clear(2);
335335 // Output is now completely empty!
336336
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+
337343 return Command::SUCCESS;
338344 }
339345 }
@@ -342,6 +348,10 @@ method, which returns an instance of
342348
343349 A new line is appended automatically when displaying information in a section.
344350
351+ .. versionadded :: 6.2
352+
353+ Allow limiting the height of a console section was introduced in Symfony 6.2.
354+
345355Output sections let you manipulate the Console output in advanced ways, such as
346356:ref: `displaying multiple progress bars <console-multiple-progress-bars >` which
347357are updated independently and :ref: `appending rows to tables <console-modify-rendered-tables >`
You can’t perform that action at this time.
0 commit comments