public function TableHelper::render in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/TableHelper.php \Symfony\Component\Console\Helper\TableHelper::render()
Renders table to output.
Example: +---------------+-----------------------+------------------+ | ISBN | Title | Author | +---------------+-----------------------+------------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | +---------------+-----------------------+------------------+
Parameters
OutputInterface $output:
File
- vendor/
symfony/ console/ Helper/ TableHelper.php, line 252
Class
- TableHelper
- Provides helpers to display table output.
Namespace
Symfony\Component\Console\HelperCode
public function render(OutputInterface $output) {
$p = new \ReflectionProperty($this->table, 'output');
$p
->setAccessible(true);
$p
->setValue($this->table, $output);
$this->table
->render();
}