removed DatabaseConnection

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-25 20:49:43 +01:00
parent 9eee91fd77
commit 59c399eb7a
1 changed files with 1 additions and 2 deletions

View File

@ -33,8 +33,7 @@ if ($uri[1] !== 'api') {
} }
$requestMethod = $_SERVER["REQUEST_METHOD"]; $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(); $controller->processRequest();