Initial commit
This commit is contained in:
commit
e6ad944f79
22 files changed
+6566
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Lewisdale\App\Controllers\SampleController;
|
||||
use Slim\Views\TwigMiddleware;
|
||||
|
||||
require_once __DIR__ . "/dependencies.php";
|
||||
|
||||
global $container;
|
||||
global $app;
|
||||
|
||||
$dotenv = Dotenv\Dotenv::createImmutable([__DIR__, __DIR__ . "/.."]);
|
||||
$dotenv->load();
|
||||
|
||||
require_once __DIR__ . "/session.php";
|
||||
|
||||
$app->add(TwigMiddleware::createFromContainer($app));
|
||||
$app->add('csrf');
|
||||
|
||||
$app->get("/", [SampleController::class, 'get']);
|
||||
|
||||
$app->addErrorMiddleware(true, true, true);
|
||||
|
||||
$app->run();
|
||||
Reference in new issue
Block a user