protected function execute(InputInterface $input, OutputInterface $output)
{
$this->repository = $this->getRepository();
$this->client = $this->getClient();
$this->actionHandler = $this->getActionHandler();
$domain = $input->getArgument('domain');
$alternativeNames = array_unique($input->getOption('alternative-name'));
sort($alternativeNames);
// Certificate renewal
if ($this->hasValidCertificate($domain, $alternativeNames)) {
return $this->executeRenewal($domain, $alternativeNames);
}
// Certificate first request
return $this->executeFirstRequest($domain, $alternativeNames);
}