Skip to content

Commit ca83f6a

Browse files
committed
Documents Output::*Verbose methods
1 parent b94e3f7 commit ca83f6a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

components/console/introduction.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,31 @@ level. For example::
196196
$output->writeln(...);
197197
}
198198

199+
.. versionadded:: 2.4
200+
The :method:`Symfony\\Component\Console\\Output\\Output::isQuiet`,
201+
:method:`Symfony\\Component\Console\\Output\\Output::isVerbose`,
202+
:method:`Symfony\\Component\Console\\Output\\Output::isVeryVerbose` and
203+
:method:`Symfony\\Component\Console\\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+
199224
When the quiet level is used, all output is suppressed as the default
200225
:method:`Symfony\Component\Console\Output::write <Symfony\\Component\\Console\\Output::write>`
201226
method returns without actually printing.

0 commit comments

Comments
 (0)