> <?php
>
> namespace Ember\Machinarium;
>
> use Laminas\Diactoros\Response\HtmlResponse;
> use Psr\Http\Message\ResponseInterface as Response;
> use Psr\Http\Message\ServerRequestInterface as Request;
> use Psr\Http\Server\RequestHandlerInterface;
>
> class MachinariumController implements RequestHandlerInterface
> {
> public function handle(Request $request): Response
> {
> return new HtmlResponse('<h1>Hello, world! 123</h1>');
> }
> }
this way replaces all page, but body only needed!