App src code
This commit is contained in:
16
app/public/index.php
Normal file
16
app/public/index.php
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user