MAPG-86 add RouteCollection to global Container

This commit is contained in:
Bence Pőcze 2020-05-31 20:36:43 +02:00
parent 6835db5e1f
commit b0b244712f

View File

@ -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();