From 64ab6243ac24c66fec214d843ad38753391dcfd3 Mon Sep 17 00:00:00 2001 From: Henry Snoek Date: Sun, 22 Apr 2018 15:24:47 +0200 Subject: [PATCH] table style set border char method deprecations --- components/console/helpers/table.rst | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/components/console/helpers/table.rst b/components/console/helpers/table.rst index b1c87bdacbf..df4670a1f5b 100644 --- a/components/console/helpers/table.rst +++ b/components/console/helpers/table.rst @@ -173,8 +173,8 @@ If the built-in styles do not fit your need, define your own:: // customizes the style $tableStyle - ->setHorizontalBorderChar('|') - ->setVerticalBorderChar('-') + ->setDefaultCrossingChars('|') + ->setVerticalBorderChars('-') ->setDefaultCrossingChar(' ') ; @@ -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` @@ -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::