Skip to content

Kirby 6.0.0

Response::guardAgainstOutput()

Ensures that the callback does not produce any body output (used to show when loading a file creates side effects)

Response::guardAgainstOutput(Closure $callback, mixed ...$args): mixed

Parameters

Name Type Default
$callbackrequired Closure no default value
...$args mixed no default value

Return type

mixed

Parent class

Kirby\Http\Response