File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,31 @@ level. For example::
196
196
$output->writeln(...);
197
197
}
198
198
199
+ .. versionadded :: 2.4
200
+ The :method: `Symfony\\ Component\C onsole\\ Output\\ Output::isQuiet `,
201
+ :method: `Symfony\\ Component\C onsole\\ Output\\ Output::isVerbose `,
202
+ :method: `Symfony\\ Component\C onsole\\ Output\\ Output::isVeryVerbose ` and
203
+ :method: `Symfony\\ Component\C onsole\\ Output\\ Output::isDebug `
204
+ methods were introduced in version 2.4
205
+
206
+ .. code-block :: php
207
+
208
+ if ($output->isQuiet()) {
209
+ // ...
210
+ }
211
+
212
+ if ($output->isVerbose()) {
213
+ // ...
214
+ }
215
+
216
+ if ($output->isVeryVerbose()) {
217
+ // ...
218
+ }
219
+
220
+ if ($output->isDebug()) {
221
+ // ...
222
+ }
223
+
199
224
When the quiet level is used, all output is suppressed as the default
200
225
:method: `Symfony\C omponent\C onsole\O utput::write <Symfony\\ Component\\ Console\\ Output::write> `
201
226
method returns without actually printing.
You can’t perform that action at this time.
0 commit comments