From db32b2e04697a675da76b8d70dbb035e84959061 Mon Sep 17 00:00:00 2001 From: Gregory Letellier Date: Tue, 14 Nov 2023 12:02:02 +0100 Subject: [PATCH] split project in two part, framework and website --- public/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/index.php b/public/index.php index 7d29678..7755002 100644 --- a/public/index.php +++ b/public/index.php @@ -2,17 +2,16 @@ /** * Loading path constant - */ -define('DS', DIRECTORY_SEPARATOR); + */ define('ROOT', dirname(dirname(__FILE__))); /** * Enable autoload */ -require_once ROOT . DS . 'vendor'. DS . 'autoload.php'; +require_once ROOT . DIRECTORY_SEPARATOR . 'vendor'. DIRECTORY_SEPARATOR . 'autoload.php'; // start application -$app = new \Kletellier\MiniWeb\Core\Kernel\Application(); +$app = new \Kletellier\Framework\Core\Kernel\Application(ROOT); // Handle Url and render Response $app->handle(); \ No newline at end of file