Exemplo n.º 1
0
 /**
  * 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();
 }