[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Symfony\Component\HttpKernel\Exception; 13 14 /** 15 * @author Ben Ramsey <ben@benramsey.com> 16 */ 17 class ServiceUnavailableHttpException extends HttpException 18 { 19 /** 20 * @param int|string $retryAfter The number of seconds or HTTP-date after which the request may be retried 21 * @param string $message The internal exception message 22 * @param \Exception $previous The previous exception 23 * @param int $code The internal exception code 24 */ 25 public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0) 26 { 27 $headers = array(); 28 if ($retryAfter) { 29 $headers = array('Retry-After' => $retryAfter); 30 } 31 32 parent::__construct(503, $message, $previous, $headers, $code); 33 } 34 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |