14 lines
452 B
PHP
14 lines
452 B
PHP
<?php
|
|
|
|
try {
|
|
$projectPath = dirname(__DIR__);
|
|
|
|
require_once $projectPath . '/vendor/autoload.php';
|
|
|
|
new class($projectPath) extends %NAMESPACE%\Kernel {};
|
|
}
|
|
catch(\Throwable $t) {
|
|
echo sprintf("%s in <strong>%s</strong> <pre>%s</pre>", $t->getMessage(), $t->getFile() . ":" . $t->getLine(), getenv('DEBUG') ? $t->getTraceAsString() : "");
|
|
error_log($t->getMessage());
|
|
header("HTTP/1.1 500 Internal Server Error");
|
|
} |