Skip to content

[Console] table style set border char method deprecations #9663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ If the built-in styles do not fit your need, define your own::

// customizes the style
$tableStyle
->setHorizontalBorderChar('<fg=magenta>|</>')
->setVerticalBorderChar('<fg=magenta>-</>')
->setDefaultCrossingChars('<fg=magenta>|</>')
->setVerticalBorderChars('<fg=magenta>-</>')
->setDefaultCrossingChar(' ')
;

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

* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPaddingChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setHorizontalBorderChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setVerticalBorderChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setDefaultCrossingChars`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setVerticalBorderChars`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCrossingChars`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setDefaultCrossingChar`
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setCellHeaderFormat`
Expand All @@ -194,9 +194,15 @@ Here is a full list of things you can customize:
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPadType`

.. versionadded:: 4.1
The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods were
introduced in Symfony 4.1. Previously you could only use the now deprecated
``setCrossingChar()`` method.
The ``setDefaultCrossingChars`` method was introduced in Symfony 4.1.
It replaces the deprecated ``setHorizontalBorderChar`` method.

Also, the ``setVerticalBorderChars`` method was introduced. Use this instead
of the deprecated ``setVerticalBorderChar`` method.

The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods are also
new. Previously you could only use the now deprecated ``setCrossingChar()``
method.

.. tip::

Expand Down