Files
Space-Theme/server/public/index.php

20 lines
400 B
PHP

<?php
declare(strict_types=1);
use App\Bootstrap;
use Dotenv\Dotenv;
require __DIR__ . '/../vendor/autoload.php';
$repoRoot = dirname(__DIR__, 1);
$repoRoot = dirname($repoRoot, 1);
if (file_exists($repoRoot . '/.env')) {
$dotenv = Dotenv::createImmutable($repoRoot);
$dotenv->safeLoad();
}
$container = Bootstrap::buildContainer();
$app = Bootstrap::createApp($container);
$app->run();