Implermented login
This commit is contained in:
parent
923d6ca242
commit
51c20b55a0
30 changed files with 2495 additions and 39 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue