From 27699b4cdf7b150acaf8b3d36bee7b3d844682a3 Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Mon, 27 May 2024 11:06:44 +0200
Subject: [PATCH] inizializzazione classe Request per gestire le richieste (parte 145)

---
 public/index.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/public/index.php b/public/index.php
index 4500409..8da6886 100644
--- a/public/index.php
+++ b/public/index.php
@@ -28,5 +28,7 @@
 
 $dispatcher = new Framework\Dispatcher($router, $container);
 
-$dispatcher->handle($path, $_SERVER["REQUEST_METHOD"]);
+$request = new Framework\Request($_SERVER["REQUEST_URI"], $_SERVER["REQUEST_METHOD"]);
+
+$dispatcher->handle($request);
     
\ No newline at end of file

--
Gitblit v1.8.0