]> Raphaël G. Git Repositories - airlibre/commitdiff
Add public index file
authorRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 10:35:13 +0000 (11:35 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 10:35:13 +0000 (11:35 +0100)
public/index.php [new file with mode: 0644]

diff --git a/public/index.php b/public/index.php
new file mode 100644 (file)
index 0000000..9982c21
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+
+use App\Kernel;
+
+require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
+
+return function (array $context) {
+    return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
+};