@@ -48,6 +48,42 @@ UPGRADE FROM 2.x to 3.0
48
48
}
49
49
```
50
50
51
+ * ` TableHelper ` has been removed in favor of ` Table ` .
52
+
53
+ Before:
54
+
55
+ ```
56
+ $table = $app->getHelperSet()->get('table');
57
+ $table
58
+ ->setHeaders(array('ISBN', 'Title', 'Author'))
59
+ ->setRows(array(
60
+ array('99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'),
61
+ array('9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'),
62
+ array('960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'),
63
+ array('80-902734-1-6', 'And Then There Were None', 'Agatha Christie'),
64
+ ))
65
+ ;
66
+ $table->render($output);
67
+ ```
68
+
69
+ After:
70
+
71
+ ```
72
+ use Symfony\Component\Console\Helper\Table;
73
+
74
+ $table = new Table($output);
75
+ $table
76
+ ->setHeaders(array('ISBN', 'Title', 'Author'))
77
+ ->setRows(array(
78
+ array('99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'),
79
+ array('9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'),
80
+ array('960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'),
81
+ array('80-902734-1-6', 'And Then There Were None', 'Agatha Christie'),
82
+ ))
83
+ ;
84
+ $table->render();
85
+ ```
86
+
51
87
### EventDispatcher
52
88
53
89
* The interface ` Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface `
0 commit comments