6 $bootstrap = require "../app/bootstrap.php";
7 $injector = $bootstrap(["config", "github", "plates", "model", "web"]);
8 return $injector->execute(Web
::class);
9 } catch (\Exception
$e) {
10 $error = $e->getMessage();
11 $stack = $e->getTraceAsString();
12 @header
("X-Exception: ".get_class($e), false, 500);
18 <meta charset
="utf-8">
19 <title
>Application Error
</title
>
20 <link rel
="stylesheet" href
="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
23 <div
class="container">
24 <div
class="jumbotron">
25 <h1
>Application Error
</h1
>
26 <h2
>Aww
, you really gotta
do that?
!</h2
>
27 <p
class="text-danger">
28 <strong
><?
= htmlspecialchars($error) ?
></strong
>
34 <?php
if (APP_ENVIRONMENT
!= "production") : ?
>
35 <pre
><?
= htmlspecialchars($stack) ?
></pre
>