add app and container files

This commit is contained in:
Yisroel Baum 2025-10-29 22:35:38 +02:00
parent 9214313615
commit 6b7ed94485
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 19 additions and 0 deletions

12
bootstrap/app.php Normal file
View file

@ -0,0 +1,12 @@
<?php
use Slim\Factory\AppFactory;
use Slim\Views\Twig;
$container = require './container.php';
$app = AppFactory::createFromContainer($container);
$twig = Twig::create(__DIR__ . '/../templates', ['cache' => false]);
return $app;

7
bootstrap/container.php Normal file
View file

@ -0,0 +1,7 @@
<?php
use DI\Container;
$container = new Container([]);
return $container;