2016-04-12 19:31:39 +02:00
|
|
|
<?php
|
|
|
|
|
2018-03-04 11:22:14 +01:00
|
|
|
namespace PHPCensor\Http\Response;
|
2016-04-12 19:31:39 +02:00
|
|
|
|
2018-03-04 11:22:14 +01:00
|
|
|
use PHPCensor\Http\Response;
|
2016-04-12 19:31:39 +02:00
|
|
|
|
|
|
|
class RedirectResponse extends Response
|
|
|
|
{
|
2016-04-21 19:05:32 +02:00
|
|
|
public function __construct(Response $createFrom = null)
|
|
|
|
{
|
|
|
|
parent::__construct($createFrom);
|
2016-04-12 19:31:39 +02:00
|
|
|
|
2016-04-21 19:05:32 +02:00
|
|
|
$this->setContent(null);
|
|
|
|
$this->setResponseCode(302);
|
|
|
|
}
|
2016-04-12 19:31:39 +02:00
|
|
|
|
2016-04-21 19:05:32 +02:00
|
|
|
public function flush()
|
|
|
|
{
|
|
|
|
parent::flush();
|
2017-01-13 16:35:41 +01:00
|
|
|
exit(1);
|
2016-04-21 19:05:32 +02:00
|
|
|
}
|
|
|
|
}
|