2020-05-17 19:29:06 +02:00
|
|
|
<?php
|
|
|
|
|
2020-06-27 01:19:17 +02:00
|
|
|
define('SCRIPT_STARTED', hrtime(true));
|
|
|
|
|
2020-05-17 19:29:06 +02:00
|
|
|
require 'vendor/autoload.php';
|
|
|
|
|
2020-05-17 22:30:22 +02:00
|
|
|
const ROOT = __DIR__;
|
2020-06-12 19:15:34 +02:00
|
|
|
const VERSION = '';
|
|
|
|
const REVISION = '';
|
|
|
|
const REVISION_DATE = '';
|
2020-05-17 22:30:22 +02:00
|
|
|
|
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(ROOT);
|
2020-05-17 19:29:06 +02:00
|
|
|
$dotenv->load();
|
|
|
|
|
2020-05-28 21:03:08 +02:00
|
|
|
class Container
|
|
|
|
{
|
|
|
|
static MapGuesser\Interfaces\Database\IConnection $dbConnection;
|
2020-05-31 20:36:43 +02:00
|
|
|
static MapGuesser\Routing\RouteCollection $routeCollection;
|
2020-07-05 12:25:25 +02:00
|
|
|
static MapGuesser\Interfaces\Session\ISessionHandler $sessionHandler;
|
2020-06-14 17:11:48 +02:00
|
|
|
static MapGuesser\Interfaces\Request\IRequest $request;
|
2020-05-28 21:03:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Container::$dbConnection = new MapGuesser\Database\Mysql\Connection($_ENV['DB_HOST'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'], $_ENV['DB_NAME']);
|