File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,39 @@ Content Methods
140
140
]
141
141
);
142
142
143
+ :method: `Symfony\\ Component\\ Console\\ Style\\ SymfonyStyle::horizontalTable `
144
+ It displays the given array of headers and rows as a compact horizontal table::
145
+
146
+ $io->horizontalTable(
147
+ ['Header 1', 'Header 2'],
148
+ [
149
+ ['Cell 1-1', 'Cell 1-2'],
150
+ ['Cell 2-1', 'Cell 2-2'],
151
+ ['Cell 3-1', 'Cell 3-2'],
152
+ ]
153
+ );
154
+
155
+ .. versionadded :: 4.4
156
+
157
+ The ``horizontalTable() `` method was introduced in Symfony 4.4.
158
+
159
+ :method: `Symfony\\ Component\\ Console\\ Style\\ SymfonyStyle::definitionList `
160
+ It displays the given ``key => value `` pairs as a compact list of elements::
161
+
162
+ $io->definitionList(
163
+ 'This is a title',
164
+ ['foo1' => 'bar1'],
165
+ ['foo2' => 'bar2']
166
+ ['foo3' => 'bar3']
167
+ new TableSeparator(),
168
+ 'This is another title',
169
+ ['foo4' => 'bar4']
170
+ );
171
+
172
+ .. versionadded :: 4.4
173
+
174
+ The ``definitionList() `` method was introduced in Symfony 4.4.
175
+
143
176
:method: `Symfony\\ Component\\ Console\\ Style\\ SymfonyStyle::newLine `
144
177
It displays a blank line in the command output. Although it may seem useful,
145
178
most of the times you won't need it at all. The reason is that every helper
You can’t perform that action at this time.
0 commit comments