diff --git a/src/Controller/ControllerInterface.php b/src/Controller/ControllerInterface.php deleted file mode 100644 index 22d2f8f..0000000 --- a/src/Controller/ControllerInterface.php +++ /dev/null @@ -1,8 +0,0 @@ -jsonResponse = $jsonResponse; } - public function run(): ViewBase + public function run(): IView { $bounds = $this->getMapBounds(); diff --git a/src/Controller/PositionController.php b/src/Controller/PositionController.php index 24d4b13..9687a72 100644 --- a/src/Controller/PositionController.php +++ b/src/Controller/PositionController.php @@ -1,12 +1,13 @@ mysql = new mysqli($_ENV['DB_HOST'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'], $_ENV['DB_NAME']); } - public function run(): ViewBase + public function run(): IView { if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $this->mapId) { $data = ['error' => 'No valid session found!']; diff --git a/src/Interfaces/Controller/IController.php b/src/Interfaces/Controller/IController.php new file mode 100644 index 0000000..07caeeb --- /dev/null +++ b/src/Interfaces/Controller/IController.php @@ -0,0 +1,8 @@ +