2020-11-17 23:27:25 +01:00
|
|
|
<?php
|
2021-03-27 04:24:16 +01:00
|
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
|
|
use Slim\Views\Twig;
|
|
|
|
|
2020-11-17 23:27:25 +01:00
|
|
|
class IndexControl
|
|
|
|
{
|
2021-03-27 04:24:16 +01:00
|
|
|
public static function start(
|
|
|
|
ServerRequestInterface $request,
|
|
|
|
ResponseInterface $response,
|
|
|
|
array $args
|
|
|
|
): ResponseInterface {
|
2021-03-29 00:22:00 +02:00
|
|
|
//unset($_SESSION);
|
2021-03-27 04:24:16 +01:00
|
|
|
$view = Twig::fromRequest($request);
|
2021-04-22 03:41:32 +02:00
|
|
|
$html = file_get_contents("../public/index.html");
|
|
|
|
$response->getBody()->write($html);
|
|
|
|
return $response;
|
2021-03-27 04:24:16 +01:00
|
|
|
}
|
|
|
|
}
|