mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
TextResponse/Fixup
* make class non-abstract so we can generate a 403/404 message on base
This commit is contained in:
@@ -89,7 +89,7 @@ trait TrCommunityHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract class TextResponse extends BaseResponse
|
class TextResponse extends BaseResponse
|
||||||
{
|
{
|
||||||
protected string $contentType = MIME_TYPE_JAVASCRIPT;
|
protected string $contentType = MIME_TYPE_JAVASCRIPT;
|
||||||
protected ?string $redirectTo = null;
|
protected ?string $redirectTo = null;
|
||||||
@@ -163,6 +163,8 @@ abstract class TextResponse extends BaseResponse
|
|||||||
|
|
||||||
echo $out;
|
echo $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function generate() : void {}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user