Skip to content

Commit 1ac87d0

Browse files
committed
minor #9663 [Console] table style set border char method deprecations (snoek09)
This PR was merged into the master branch. Discussion ---------- [Console] table style set border char method deprecations This partly fixes #9646. Commits ------- 64ab624 table style set border char method deprecations
2 parents 0ec5009 + 64ab624 commit 1ac87d0

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

components/console/helpers/table.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ If the built-in styles do not fit your need, define your own::
194194

195195
// customizes the style
196196
$tableStyle
197-
->setHorizontalBorderChar('<fg=magenta>|</>')
198-
->setVerticalBorderChar('<fg=magenta>-</>')
197+
->setDefaultCrossingChars('<fg=magenta>|</>')
198+
->setVerticalBorderChars('<fg=magenta>-</>')
199199
->setDefaultCrossingChar(' ')
200200
;
201201

@@ -205,8 +205,8 @@ If the built-in styles do not fit your need, define your own::
205205
Here is a full list of things you can customize:
206206

207207
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPaddingChar`
208-
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setHorizontalBorderChar`
209-
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setVerticalBorderChar`
208+
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setDefaultCrossingChars`
209+
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setVerticalBorderChars`
210210
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCrossingChars`
211211
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setDefaultCrossingChar`
212212
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCellHeaderFormat`
@@ -215,9 +215,15 @@ Here is a full list of things you can customize:
215215
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPadType`
216216

217217
.. versionadded:: 4.1
218-
The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods were
219-
introduced in Symfony 4.1. Previously you could only use the now deprecated
220-
``setCrossingChar()`` method.
218+
The ``setDefaultCrossingChars`` method was introduced in Symfony 4.1.
219+
It replaces the deprecated ``setHorizontalBorderChar`` method.
220+
221+
Also, the ``setVerticalBorderChars`` method was introduced. Use this instead
222+
of the deprecated ``setVerticalBorderChar`` method.
223+
224+
The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods are also
225+
new. Previously you could only use the now deprecated ``setCrossingChar()``
226+
method.
221227

222228
.. tip::
223229

0 commit comments

Comments
 (0)