23 lines
No EOL
623 B
PHP
23 lines
No EOL
623 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use GamesShop\ContainerHandler;
|
|
use GamesShop\CrashHandler;
|
|
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();
|
|
|
|
throw new Exception();
|
|
|
|
$router = ContainerHandler::getInstance()->get(Router::class);
|
|
$result = $router->route();
|
|
|
|
(new SapiEmitter)->emit($result); |