/** * Solves a certain challenge. * * Return false if not possible. * * @param Challenge $challenge * @param array $payload * * @return bool */ public final function solve(Challenge $challenge, $payload = []) { $this->request = new Request(['solver' => __CLASS__, 'expires_at' => $challenge->getExpires(), 'hostname_id' => $challenge->getCertificate()->getIdentifier()]); $this->request->save(); // forward the request to the extended class $this->handle(); }
/** * @return \Hyn\LetsEncrypt\Acme\Client */ protected function acme() { return $this->challenge->getCertificate()->getAccount()->acme(); }