Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/http-foundation/RedirectResponse.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
30 * | 30 * |
31 * @throws \InvalidArgumentException | 31 * @throws \InvalidArgumentException |
32 * | 32 * |
33 * @see http://tools.ietf.org/html/rfc2616#section-10.3 | 33 * @see http://tools.ietf.org/html/rfc2616#section-10.3 |
34 */ | 34 */ |
35 public function __construct($url, $status = 302, $headers = array()) | 35 public function __construct($url, $status = 302, $headers = []) |
36 { | 36 { |
37 parent::__construct('', $status, $headers); | 37 parent::__construct('', $status, $headers); |
38 | 38 |
39 $this->setTargetUrl($url); | 39 $this->setTargetUrl($url); |
40 | 40 |
54 * @param int $status The response status code | 54 * @param int $status The response status code |
55 * @param array $headers An array of response headers | 55 * @param array $headers An array of response headers |
56 * | 56 * |
57 * @return static | 57 * @return static |
58 */ | 58 */ |
59 public static function create($url = '', $status = 302, $headers = array()) | 59 public static function create($url = '', $status = 302, $headers = []) |
60 { | 60 { |
61 return new static($url, $status, $headers); | 61 return new static($url, $status, $headers); |
62 } | 62 } |
63 | 63 |
64 /** | 64 /** |