2022-11-09 15:25:59 -03:00
|
|
|
<?php
|
|
|
|
$app = require_once implode(DIRECTORY_SEPARATOR, [
|
|
|
|
dirname(__FILE__, 2),
|
|
|
|
'setup',
|
|
|
|
'app.php'
|
|
|
|
]);
|
2022-12-01 14:15:54 -03:00
|
|
|
Monolog\ErrorHandler::register($app->getContainer()->get(Psr\Log\LoggerInterface::class));
|
2022-11-25 20:52:46 -03:00
|
|
|
try {
|
|
|
|
$app->run();
|
2023-06-09 00:54:34 -04:00
|
|
|
} catch (Error $e) {
|
|
|
|
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e);
|
|
|
|
} catch (Exception $e) {
|
|
|
|
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->warning($e);
|
2022-11-25 20:52:46 -03:00
|
|
|
}
|