Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/Exception/TooManyRequestsHttpException.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
24 * @param \Exception $previous The previous exception | 24 * @param \Exception $previous The previous exception |
25 * @param int $code The internal exception code | 25 * @param int $code The internal exception code |
26 */ | 26 */ |
27 public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0) | 27 public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0) |
28 { | 28 { |
29 $headers = array(); | 29 $headers = []; |
30 if ($retryAfter) { | 30 if ($retryAfter) { |
31 $headers = array('Retry-After' => $retryAfter); | 31 $headers = ['Retry-After' => $retryAfter]; |
32 } | 32 } |
33 | 33 |
34 parent::__construct(429, $message, $previous, $headers, $code); | 34 parent::__construct(429, $message, $previous, $headers, $code); |
35 } | 35 } |
36 } | 36 } |