diff options
Diffstat (limited to 'src/Http/Exceptions/HttpPermanentRedirect.php')
-rw-r--r-- | src/Http/Exceptions/HttpPermanentRedirect.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Http/Exceptions/HttpPermanentRedirect.php b/src/Http/Exceptions/HttpPermanentRedirect.php new file mode 100644 index 00000000..a1aa986f --- /dev/null +++ b/src/Http/Exceptions/HttpPermanentRedirect.php @@ -0,0 +1,17 @@ +<?php + +namespace Engelsystem\Http\Exceptions; + +class HttpPermanentRedirect extends HttpRedirect +{ + /** + * @param string $url + * @param array $headers + */ + public function __construct( + string $url, + array $headers = [] + ) { + parent::__construct($url, 301, $headers); + } +} |