AcmePhp\Cli\Command\AbstractCommand::getClient PHP Method

getClient() protected method

protected getClient ( ) : AcmePhp\Core\AcmeClient
return AcmePhp\Core\AcmeClient
    protected function getClient()
    {
        $this->output->writeln('<info>Loading account key pair...</info>');
        $accountKeyPair = $this->getRepository()->loadAccountKeyPair();
        /** @var SecureHttpClient $httpClient */
        $httpClient = $this->getContainer()->get('http.client_factory')->createSecureHttpClient($accountKeyPair);
        /** @var CertificateRequestSigner $csrSigner */
        $csrSigner = $this->getContainer()->get('ssl.csr_signer');
        return new AcmeClient($httpClient, $this->input->getOption('server'), $csrSigner);
    }