19declare(strict_types=1);
34 private readonly HttpService
$http,
35 private readonly InterruptiveModal|RoundTripModal|
MessageBox|
State|array|
string $content
42 $rendered_content = is_string($this->content)
46 $this->
http->saveResponse(
47 $this->
http->response()->withBody(
53 $this->
http->sendResponse();
Stream factory which enables the user to create streams without the knowledge of the concrete class.
static ofString(string $string)
Creates a new stream with an initial value.
__construct(private readonly HttpService $http, private readonly InterruptiveModal|RoundTripModal|MessageBox|State|array|string $content)
render(UIRenderer $ui_renderer)
An entity that renders components to a string output.
readonly HttpService $http
readonly UIRenderer $ui_renderer
static http()
Fetches the global http state from ILIAS.