mapguesser/main.php

26 lines
870 B
PHP
Raw Permalink Normal View History

<?php
define('SCRIPT_STARTED', hrtime(true));
require 'vendor/autoload.php';
const ROOT = __DIR__;
const VERSION = '';
const REVISION = '';
const REVISION_DATE = '';
$dotenv = Dotenv\Dotenv::createImmutable(ROOT);
$dotenv->load();
class Container
{
2023-04-07 20:28:14 +02:00
static SokoWeb\Interfaces\Database\IConnection $dbConnection;
2023-04-20 00:19:54 +02:00
static SokoWeb\Interfaces\PersistentData\IPersistentDataManager $persistentDataManager;
2023-04-20 00:29:22 +02:00
static SokoWeb\Interfaces\Routing\IRouteCollection $routeCollection;
2023-04-07 20:28:14 +02:00
static SokoWeb\Interfaces\Session\ISessionHandler $sessionHandler;
static SokoWeb\Interfaces\Request\IRequest $request;
}
2023-04-07 20:28:14 +02:00
Container::$dbConnection = new SokoWeb\Database\Mysql\Connection($_ENV['DB_HOST'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'], $_ENV['DB_NAME']);
2023-04-20 00:19:54 +02:00
Container::$persistentDataManager = new SokoWeb\PersistentData\PersistentDataManager(Container::$dbConnection);