add Twig for template rendering
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lexi / Zoe 2020-07-01 00:12:23 +02:00
parent 7cc2d40660
commit 92a4d2fcf8
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
7 changed files with 333 additions and 81 deletions

View file

@ -4,12 +4,14 @@ 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();