How to disable output for a command in Symfony Console?
<p>I writing a module, actually a custom command in Magento 2. Magento 2 console application is proudly powered by <strong>Symfony Console</strong>, obviously. And my concernation is how to disable output from <code>$output</code> for specified command?</p>

<p>For example:</p>

<pre><code>$setupUpgradeCommand = $this-&gt;getApplication()-&gt;find('setup:upgrade');

$setupUpgradeArguments = array(
    'command' =&gt; 'setup:upgrade',
    '--quiet' =&gt; true,
);

$setupUpgradeInput = new ArrayInput($setupUpgradeArguments);

$start = microtime(true);
$output-&gt;writeln('&lt;info&gt;Start upgrading module schemas...&lt;/info&gt;');
$setupUpgradeCommand-&gt;run($setupUpgradeInput, $output);
$output-&gt;writeln('...............................&lt;info&gt;OK&lt;/info&gt;');

// My long logic-code start from here....
</code></pre>

<p>Unfortunately, even I set <code>--quiet</code> to true, output of this command <code>setup:upgrade</code> still there.</p>

<p>Any ideas?</p>