App src code

This commit is contained in:
2023-02-14 17:27:01 -03:00
parent ab6c7fa9dd
commit 5eec0d93b0
26 changed files with 525 additions and 0 deletions

16
app/public/index.php Normal file
View File

@ -0,0 +1,16 @@
<?php
use Psr\Log\LoggerInterface;
$app = require_once implode(DIRECTORY_SEPARATOR, [
dirname(__FILE__, 2),
'setup',
'app.php'
]);
Monolog\ErrorHandler::register($app->getContainer()->get(LoggerInterface::class));
try {
$app->run();
} catch (Exception $e) {
$app->getContainer()->get(LoggerInterface::class)->alert($e);
} catch (Error $e) {
$app->getContainer()->get(LoggerInterface::class)->error($e);
}