Skip to content

Commit a0ee1ec

Browse files
ayacoojaviereguiluz
authored andcommitted
[Console] Update console.rst
1 parent 01714e1 commit a0ee1ec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

console.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
345355
Output sections let you manipulate the Console output in advanced ways, such as
346356
:ref:`displaying multiple progress bars <console-multiple-progress-bars>` which
347357
are updated independently and :ref:`appending rows to tables <console-modify-rendered-tables>`

0 commit comments

Comments
 (0)