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:
parent
e2f2e6d0f5
commit
1f19120631
@ -1,6 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
use Slim\Factory\AppFactory;
|
||||||
if (PHP_SAPI == 'cli-server') {
|
if (PHP_SAPI == 'cli-server') {
|
||||||
// To help the built-in PHP dev server, check if the request was actually for
|
// 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();
|
session_start();
|
||||||
|
|
||||||
// Instantiate the app
|
// Instantiate the app
|
||||||
$settings = require __DIR__ . '/../src/settings.php';
|
|
||||||
//$app = new \Slim\App($settings);
|
|
||||||
$app = AppFactory::create()
|
|
||||||
|
|
||||||
// Set up dependencies
|
// Set up dependencies
|
||||||
require __DIR__ . '/../src/dependencies.php';
|
require __DIR__ . '/../src/dependencies.php';
|
||||||
|
|
||||||
|
AppFactory::setContainer($container);
|
||||||
|
$app = AppFactory::create();
|
||||||
|
|
||||||
// Register middleware
|
// Register middleware
|
||||||
require __DIR__ . '/../src/middleware.php';
|
require __DIR__ . '/../src/middleware.php';
|
||||||
|
|
||||||
|
// Require DB
|
||||||
|
require __DIR__.'/../db/db.php';
|
||||||
// Register routes
|
// Register routes
|
||||||
require __DIR__ . '/../src/routes.php';
|
require __DIR__ . '/../src/routes.php';
|
||||||
|
|
||||||
// Require DB
|
|
||||||
require __DIR__.'/../db/db.php';
|
|
||||||
|
|
||||||
// Run app
|
// Run app
|
||||||
$app->run();
|
$app->run();
|
||||||
|
Loading…
Reference in New Issue
Block a user