1
0
mirror of synced 2025-01-31 12:32:59 +03:00

#1120 - using the Symfony\Component\Console\Helper\TableHelper for symfony/symfony:~2.3 compatibility

(Instead of `Symfony\Component\Console\Helper\Table`)
This commit is contained in:
Marco Pivetta 2014-10-20 18:49:54 +02:00
parent 9ccb56a7ab
commit 95bc0fb456

View File

@ -22,7 +22,7 @@ namespace Doctrine\ORM\Tools\Console\Command;
use Doctrine\Common\Persistence\Mapping\MappingException; use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
@ -79,7 +79,7 @@ EOT
*/ */
private function displayEntity($entityName, EntityManagerInterface $entityManager, OutputInterface $output) private function displayEntity($entityName, EntityManagerInterface $entityManager, OutputInterface $output)
{ {
$table = new Table($output); $table = new TableHelper();
$table->setHeaders(array('Field', 'Value')); $table->setHeaders(array('Field', 'Value'));
@ -126,7 +126,7 @@ EOT
) )
); );
$table->render(); $table->render($output);
} }
/** /**