12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace Symfony\Component\HttpKernel\Exception;
- class ServiceUnavailableHttpException extends HttpException
- {
-
- public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0)
- {
- $headers = array();
- if ($retryAfter) {
- $headers = array('Retry-After' => $retryAfter);
- }
- parent::__construct(503, $message, $previous, $headers, $code);
- }
- }
|