sermon-notes/public/index.php
2025-04-27 23:04:10 -04:00

15 lines
418 B
PHP

<?php
use App\Kernel;
if (file_exists(__DIR__.$_SERVER['REQUEST_URI']) && is_readable(__DIR__.$_SERVER['REQUEST_URI']) && is_file(__DIR__.$_SERVER['REQUEST_URI'])) {
print file_get_contents(__DIR__.$_SERVER['REQUEST_URI']);
exit;
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};