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();
|
|
|
|
} catch (Error | Exception $e) {
|
|
|
|
$app->getContainer()->get(\Psr\Log\LoggerInterface::class)->error($e);
|
|
|
|
throw $e;
|
|
|
|
}
|