final rework just for deploy the fucking event in a nice an up to date version of php, participants database is missing

This commit is contained in:
sabelo 2024-07-28 22:57:34 -03:00
parent e2f2e6d0f5
commit 1f19120631

View File

@ -1,6 +1,4 @@
<?php
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
if (PHP_SAPI == 'cli-server') {
// To help the built-in PHP dev server, check if the request was actually for
@ -17,21 +15,21 @@ require __DIR__ . '/../vendor/autoload.php';
session_start();
// Instantiate the app
$settings = require __DIR__ . '/../src/settings.php';
//$app = new \Slim\App($settings);
$app = AppFactory::create()
// Set up dependencies
require __DIR__ . '/../src/dependencies.php';
AppFactory::setContainer($container);
$app = AppFactory::create();
// Register middleware
require __DIR__ . '/../src/middleware.php';
// Require DB
require __DIR__.'/../db/db.php';
// Register routes
require __DIR__ . '/../src/routes.php';
// Require DB
require __DIR__.'/../db/db.php';
// Run app
$app->run();