Implermented login

This commit is contained in:
Michel Fedde 2024-06-30 22:29:50 +02:00
parent 923d6ca242
commit 51c20b55a0
30 changed files with 2495 additions and 39 deletions

View file

@ -2,20 +2,23 @@
declare(strict_types=1);
use GamesShop\ContainerHandler;
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__ . '/../vendor/autoload.php';
ContainerHandler::get(EnvironmentHandler::class)->load();
require_once __DIR__ . '/../src/php/bootstrap.php';
$whoops = new Run();
$whoops->pushHandler(new PrettyPageHandler);
$prettyPageHandler = new PrettyPageHandler();
$whoops->pushHandler($prettyPageHandler);
$whoops->register();
ContainerHandler::getInstance()->addShared(HandlerInterface::class, $prettyPageHandler);
$router = ContainerHandler::getInstance()->get(Router::class);
$result = $router->route();