22 lines
507 B
PHP
22 lines
507 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
use App\Shared\Bootstrap;
|
|
use App\Shared\Http\RequestContext;
|
|
|
|
$bootstrap = Bootstrap::create();
|
|
$bootstrap->initializeInfrastructure();
|
|
|
|
$trustedProxies = RequestContext::trustedProxiesFromEnvironment($_ENV, $_SERVER);
|
|
|
|
session_start([
|
|
'cookie_secure' => RequestContext::isHttps($_SERVER, $trustedProxies),
|
|
'cookie_httponly' => true,
|
|
'cookie_samesite' => 'Lax',
|
|
]);
|
|
|
|
$app = $bootstrap->createHttpApp();
|
|
$app->run();
|