wire eloquent capsule
This commit is contained in:
parent
2e1c9282c5
commit
50814ffd60
2 changed files with 28 additions and 3 deletions
|
|
@ -6,14 +6,19 @@ use Slim\App;
|
|||
(static function (): void {
|
||||
$root = dirname(__DIR__);
|
||||
|
||||
require $root.'/vendor/autoload.php';
|
||||
require $root . '/vendor/autoload.php';
|
||||
|
||||
$container = require $root.'/config/container.php';
|
||||
$dotenv = Dotenv\Dotenv::createImmutable($root);
|
||||
$dotenv->safeLoad();
|
||||
|
||||
require $root . '/config/database.php';
|
||||
|
||||
$container = require $root . '/config/container.php';
|
||||
|
||||
/** @var App $app */
|
||||
$app = Bridge::create($container);
|
||||
|
||||
(require $root.'/config/routes.php')($app);
|
||||
(require $root . '/config/routes.php')($app);
|
||||
|
||||
$app->run();
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue