NoteCat/public/index.php
binaryDiv 92a4d2fcf8
All checks were successful
continuous-integration/drone/push Build is passing
add Twig for template rendering
2020-07-01 00:12:23 +02:00

17 lines
357 B
PHP

<?php
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';
use NoteCat\Dependencies;
use NoteCat\Middlewares;
use NoteCat\Routes;
use Slim\Factory\AppFactory;
$container = Dependencies::createContainer();
$app = AppFactory::createFromContainer($container);
Middlewares::setMiddlewares($app);
Routes::setRoutes($app);
$app->run();