From 58f0f09dca9b126b70fe8856a26b65688c2ff979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Somfai?= Date: Tue, 28 Jun 2016 10:35:10 +0200 Subject: [PATCH] Added an example for a different method of verbosity level usage. --- components/console/introduction.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/console/introduction.rst b/components/console/introduction.rst index d70fa17374e..b149efe711f 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -229,6 +229,9 @@ level. For example:: $output->writeln(...); } + // alternatively you can pass the verbosity level to writeln() + $output->writeln('...', OutputInterface::VERBOSITY_VERBOSE); + There are also more semantic methods you can use to test for each of the verbosity levels::