getBody(); $body->write('Hello ' . $name . '!
'); $body->write('The time is: ' . $clock->now()->format('H:i:s')); return $response->withBody($body) ->withStatus(200); } }