for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sugarcrm\UpgradeSpec\Command;
use Symfony\Component\Console\Command\Command as SymfonyCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class Command extends SymfonyCommand
{
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @return int
*/
public function run(InputInterface $input, OutputInterface $output)
try {
return parent::run($input, $output);
} catch (\Exception $e) {
$output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
return 1;
}
* Initialize command and validate input.
protected function initialize(InputInterface $input, OutputInterface $output)
$this->validateInput($input);
* Validate user input.
protected function validateInput(InputInterface $input)