isVerbose() ? $output : new NullOutput()); $ioVV = new SymfonyStyle($input, $output->isVeryVerbose() ? $output : new NullOutput()); $ioVVV = new SymfonyStyle($input, $output->isDebug() ? $output : new NullOutput()); $ioV->writeln('message visible with -v only'); $ioVV->writeln('message visible with -vv only'); $ioVVV->writeln('message visible with -vvv only'); } }