This commit is contained in:
parent
a1adc59ad9
commit
0962b609c4
3 changed files with 29 additions and 5 deletions
|
@ -6,7 +6,7 @@ services:
|
|||
- 8080:80
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./../..:/app
|
||||
- ./..:/app
|
||||
- caddy_config:/config
|
||||
- caddy_data:/data
|
||||
depends_on:
|
||||
|
@ -15,7 +15,7 @@ services:
|
|||
container_name: gamesshop_php
|
||||
build: .
|
||||
volumes:
|
||||
- ./../..:/app
|
||||
- ./..:/app
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
|
|
|
@ -6,7 +6,7 @@ services:
|
|||
- 8006:80
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./../..:/app
|
||||
- ./..:/app
|
||||
- caddy_config:/config
|
||||
- caddy_data:/data
|
||||
depends_on:
|
||||
|
@ -15,7 +15,7 @@ services:
|
|||
container_name: gamesshop_php
|
||||
build: .
|
||||
volumes:
|
||||
- ./../..:/app
|
||||
- ./..:/app
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
|
|
|
@ -1,2 +1,26 @@
|
|||
<?php
|
||||
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__ . '/../src/php/bootstrap.php';
|
||||
|
||||
$whoops = new Run();
|
||||
$prettyPageHandler = new PrettyPageHandler();
|
||||
$whoops->pushHandler($prettyPageHandler);
|
||||
$whoops->register();
|
||||
|
||||
ContainerHandler::getInstance()->addShared(HandlerInterface::class, $prettyPageHandler);
|
||||
|
||||
$router = ContainerHandler::getInstance()->get(Router::class);
|
||||
$result = $router->route();
|
||||
|
||||
(new SapiEmitter)->emit($result);
|
Loading…
Reference in a new issue