diff --git a/composer.json b/composer.json index c78fb15..0f5e1f2 100644 --- a/composer.json +++ b/composer.json @@ -11,4 +11,5 @@ "ext-pdo_sqlite": "*", "twig/twig":"^2.0" } + } \ No newline at end of file diff --git a/public/index.php b/public/index.php index 4ccdf44..77273f5 100644 --- a/public/index.php +++ b/public/index.php @@ -5,6 +5,7 @@ require "../config.php"; require "../sql/database.php"; require "utils.php"; + use App\Connexion; use App\Controller\FrontController; use App\Controller\EditorController; @@ -32,3 +33,4 @@ $frontController->route(); //$sampleFormController = new SampleFormController(new FormResultGateway($con), $twig); //$editorController = new EditorController(new TacticModel(new TacticInfoGateway($con))); + diff --git a/src/Controller/FrontController.php b/src/Controller/FrontController.php index c8b260d..9a97466 100644 --- a/src/Controller/FrontController.php +++ b/src/Controller/FrontController.php @@ -13,6 +13,7 @@ use App\Http\ViewHttpResponse; use App\Validation\ValidationFail; use Twig\Loader\FilesystemLoader; + class FrontController{ private AltoRouter $router; diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 5a7d85a..701fa0f 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -13,5 +13,3 @@ class UserController { } } - -?> \ No newline at end of file