blob: 13f7bfa776083131e8f0abf300004393bf8d3498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<?php
session_start();
require('app/fn/fn.php');
require('./vendor/autoload.php');
$app = new Wcms\Application();
$app->wakeup();
try {
Sentry\init([
'dsn' => Wcms\Config::sentrydsn(),
'release' => getversion(),
'project_root' => 'app',
]);
Sentry\configureScope(function ($scope) {
$scope->setUser([
'id' => Wcms\Config::url(),
'username' => Wcms\Config::basepath(),
]);
});
} catch (Throwable $th) {
// No problem: Sentry is optionnal
}
try {
$matchoper = new Wcms\Routes();
$matchoper->match();
} catch (Exception $e) {
try {
Sentry\captureException($e);
} catch (Throwable $th) {
// No problem: Sentry is optionnal
}
echo '<h1>⚠ Woops ! There is a little problem : </h1>', $e->getMessage(), "\n";
}
?>
|