summaryrefslogtreecommitdiff
path: root/src/Http/Exceptions/HttpTemporaryRedirect.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-21 12:17:28 +0100
committermsquare <msquare@notrademark.de>2019-06-12 10:21:20 +0200
commit2e51fbff9d8472a0e98af39aff52d30f0b67706b (patch)
treea41eaf8fa3296fb2892b97fde1074edc566be4c3 /src/Http/Exceptions/HttpTemporaryRedirect.php
parente948091066e4893b1b823fc80db1c1ebba174b53 (diff)
Added / route with redirects
Diffstat (limited to 'src/Http/Exceptions/HttpTemporaryRedirect.php')
-rw-r--r--src/Http/Exceptions/HttpTemporaryRedirect.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Http/Exceptions/HttpTemporaryRedirect.php b/src/Http/Exceptions/HttpTemporaryRedirect.php
new file mode 100644
index 00000000..ece8d607
--- /dev/null
+++ b/src/Http/Exceptions/HttpTemporaryRedirect.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Engelsystem\Http\Exceptions;
+
+class HttpTemporaryRedirect extends HttpRedirect
+{
+ /**
+ * @param string $url
+ * @param array $headers
+ */
+ public function __construct(
+ string $url,
+ array $headers = []
+ ) {
+ parent::__construct($url, 302, $headers);
+ }
+}