protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
{
if (!$command instanceof LocalCommand\NeedConfigurationInterface) {
return parent::doRunCommand($command, $input, $output);
}
$configuration = $this->getHelperSet()->get('configuration')->getConfiguration($input, $output);
$this->apiConfig = array_merge($this->apiConfig, $configuration->toArray());
if (false !== $input->getParameterOption('--log')) {
$this->logFile = $input->getParameterOption('--log') ?: getcwd() . '/insight.log';
}
return parent::doRunCommand($command, $input, $output);
}