From 59c399eb7a6dae2397d954a660d06a27d0a46ae7 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 25 Jan 2022 20:49:43 +0100 Subject: [PATCH] removed DatabaseConnection Signed-off-by: tracer --- public/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index a25e814..e518454 100644 --- a/public/index.php +++ b/public/index.php @@ -33,8 +33,7 @@ if ($uri[1] !== 'api') { } $requestMethod = $_SERVER["REQUEST_METHOD"]; -$databaseConnection = new DatabaseConnection(config: $config); -$controller = new RequestController(databaseConnection: $databaseConnection, requestMethod: $requestMethod, uri: $uri); +$controller = new RequestController(config: $config, requestMethod: $requestMethod, uri: $uri); $controller->processRequest();