<?php

declare(strict_types=1);

use App\App\AppFactory;
use App\App\Config;
use App\App\Container;

require __DIR__ . '/../vendor/autoload.php';

/** @var array<string, mixed> $settings */
$settings = require __DIR__ . '/../config/settings.php';
// SEC_REVIEW F35: refuse to boot on a misconfigured INTERNAL_JOB_TOKEN.
Config::validateOrExit($settings);
$container = Container::build($settings);
AppFactory::build($container)->run();
