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) {