Catch all exceptions and write message, trace (in verbose mode) to console output.
Returns code depends of executing result. Zero on success. Exception code or one otherwise.
composer require sbooker/console
use Sbooker\Console\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ConcreteCommand extends Command
{
// Define command. See [Symfony Console Component](https://symfony.com/doc/current/components/console.html)
protected function doExecute(InputInterface $input, OutputInterface $output) : void {
// .... do something successful ....
}
}
See LICENSE file.