setAttemptRetry() public method

Set attempt retry
public setAttemptRetry ( boolean $attemptRetry )
$attemptRetry boolean
Example #1
0
 /**
  * Starts the close sequence
  */
 public function close()
 {
     $this->client->setAttemptRetry(false);
     $this->transport->close();
 }
Example #2
0
 /**
  * @return Client
  * @throws \Exception
  */
 private function getShortClient()
 {
     $client = new Client($this->config['realm']);
     $client->setAttemptRetry(false);
     $client->addTransportProvider(new PawlTransportProvider($this->config['trusted_url']));
     return $client;
 }