From b0b244712ffaf82ccbc1f3a237039935ea498b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 31 May 2020 20:36:43 +0200 Subject: [PATCH] MAPG-86 add RouteCollection to global Container --- main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.php b/main.php index 75a9a94..72e92f1 100644 --- a/main.php +++ b/main.php @@ -18,8 +18,10 @@ if (!empty($_ENV['DEV'])) { class Container { static MapGuesser\Interfaces\Database\IConnection $dbConnection; + static MapGuesser\Routing\RouteCollection $routeCollection; } Container::$dbConnection = new MapGuesser\Database\Mysql\Connection($_ENV['DB_HOST'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'], $_ENV['DB_NAME']); +Container::$routeCollection = new MapGuesser\Routing\RouteCollection(); session_start();