gamesshop/src/php/index.php

23 lines
623 B
PHP
Raw Normal View History

2024-10-30 18:40:26 +00:00
<?php
declare(strict_types=1);
use GamesShop\ContainerHandler;
use GamesShop\CrashHandler;
2024-10-30 18:40:26 +00:00
use GamesShop\DoctrineManager;
use GamesShop\Environment\EnvironmentHandler;
use GamesShop\Routing\Router;
use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
use Whoops\Handler\HandlerInterface;
use Whoops\Handler\PrettyPageHandler;
use Whoops\Run;
require_once __DIR__ . '/../src/php/bootstrap.php';
ContainerHandler::get(CrashHandler::class)->register();
2024-10-30 18:40:26 +00:00
throw new Exception();
2024-10-30 18:40:26 +00:00
$router = ContainerHandler::getInstance()->get(Router::class);
$result = $router->route();
2024-06-30 12:41:33 +00:00
(new SapiEmitter)->emit($result);