Kelunik\AcmeClient\Stores\CertificateStore::doGet PHP Method

doGet() private method

private doGet ( $name )
    private function doGet($name)
    {
        Assert::string($name, "Name must be a string. Got: %s");
        try {
            $contents = (yield \Amp\File\get($this->root . "/" . $name . "/cert.pem"));
            (yield new CoroutineResult($contents));
        } catch (FilesystemException $e) {
            throw new CertificateStoreException("Failed to load certificate.", 0, $e);
        }
    }