1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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);
- }
- }
|