add app and container files
This commit is contained in:
parent
9214313615
commit
6b7ed94485
2 changed files with 19 additions and 0 deletions
12
bootstrap/app.php
Normal file
12
bootstrap/app.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
use Slim\Factory\AppFactory;
|
||||
use Slim\Views\Twig;
|
||||
|
||||
$container = require './container.php';
|
||||
|
||||
$app = AppFactory::createFromContainer($container);
|
||||
|
||||
$twig = Twig::create(__DIR__ . '/../templates', ['cache' => false]);
|
||||
|
||||
return $app;
|
||||
Loading…
Add table
Add a link
Reference in a new issue