From e715a5e97ec8c4e1ea877509dd082a8311a8edf2 Mon Sep 17 00:00:00 2001 From: Marcel Hernandez Date: Tue, 16 Apr 2024 16:31:03 +0200 Subject: [PATCH] cleanup --- frontend/web/index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/web/index.php b/frontend/web/index.php index a9b76ff..4a29c57 100644 --- a/frontend/web/index.php +++ b/frontend/web/index.php @@ -34,11 +34,7 @@ $twig->getEnvironment()->addGlobal('chain', $chain = stream_get_line($fh, 16, "\n")); - $response = $handler->handle( - $request - ->withAttribute('grouphug_conn', $fh) - ->withAttribute('grouphug_chain', $chain) - ); + $response = $handler->handle($request->withAttribute('grouphug_conn', $fh)); stream_socket_shutdown($fh, \STREAM_SHUT_RDWR); fclose($fh); @@ -47,7 +43,7 @@ }); $app->get('/', function (ServerRequestInterface $request, ResponseInterface $response) use ($twig) { - return $twig->render($response, 'index.html.twig', ['chain' => $request->getAttribute('grouphug_chain')]); + return $twig->render($response, 'index.html.twig'); }); $app->post('/', function (ServerRequestInterface $request, ResponseInterface $response) use ($twig) {