Skip to content

Commit 814d11a

Browse files
committed
minor #9473 [Console] Mentioned the new methods related to crossing chars (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #9473). Discussion ---------- [Console] Mentioned the new methods related to crossing chars Also related to the changes mentioned in ##9456. Commits ------- 06983f6 [Console] Mentioned the new methods related to crossing chars
2 parents 2cd65ea + 06983f6 commit 814d11a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

components/console/helpers/table.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ If the built-in styles do not fit your need, define your own::
175175
$tableStyle
176176
->setHorizontalBorderChar('<fg=magenta>|</>')
177177
->setVerticalBorderChar('<fg=magenta>-</>')
178-
->setCrossingChar(' ')
178+
->setDefaultCrossingChar(' ')
179179
;
180180

181181
// uses the custom style for this table
@@ -186,12 +186,18 @@ Here is a full list of things you can customize:
186186
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPaddingChar`
187187
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setHorizontalBorderChar`
188188
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setVerticalBorderChar`
189-
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCrossingChar`
189+
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCrossingChars`
190+
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setDefaultCrossingChar`
190191
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCellHeaderFormat`
191192
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCellRowFormat`
192193
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setBorderFormat`
193194
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPadType`
194195

196+
.. versionadded:: 4.1
197+
The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods were
198+
introduced in Symfony 4.1. Previously you could only use the now deprecated
199+
``setCrossingChar()`` method.
200+
195201
.. tip::
196202

197203
You can also register a style globally::

0 commit comments

Comments
 (0)