| 148 |
lars |
1 |
<div class="exception-summary <?= !$exceptionMessage ? 'exception-without-message' : ''; ?>">
|
|
|
2 |
<div class="exception-metadata">
|
|
|
3 |
<div class="container">
|
|
|
4 |
<h2 class="exception-hierarchy">
|
|
|
5 |
<?php foreach (array_reverse($exception->getAllPrevious(), true) as $index => $previousException) { ?>
|
|
|
6 |
<a href="#trace-box-<?= $index + 2; ?>"><?= $this->abbrClass($previousException->getClass()); ?></a>
|
|
|
7 |
<span class="icon"><?= $this->include('assets/images/chevron-right.svg'); ?></span>
|
|
|
8 |
<?php } ?>
|
|
|
9 |
<a href="#trace-box-1"><?= $this->abbrClass($exception->getClass()); ?></a>
|
|
|
10 |
</h2>
|
|
|
11 |
<h2 class="exception-http">
|
|
|
12 |
HTTP <?= $statusCode; ?> <small><?= $statusText; ?></small>
|
|
|
13 |
</h2>
|
|
|
14 |
</div>
|
|
|
15 |
</div>
|
|
|
16 |
|
|
|
17 |
<div class="exception-message-wrapper">
|
|
|
18 |
<div class="container">
|
|
|
19 |
<h1 class="break-long-words exception-message<?= mb_strlen($exceptionMessage) > 180 ? ' long' : ''; ?>"><?= $this->formatFileFromText(nl2br($exceptionMessage)); ?></h1>
|
|
|
20 |
|
|
|
21 |
<div class="exception-illustration hidden-xs-down">
|
|
|
22 |
<?= $this->include('assets/images/symfony-ghost.svg.php'); ?>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
</div>
|
|
|
26 |
</div>
|
|
|
27 |
|
|
|
28 |
<div class="container">
|
|
|
29 |
<div class="sf-tabs">
|
|
|
30 |
<div class="tab">
|
|
|
31 |
<?php
|
|
|
32 |
$exceptionAsArray = $exception->toArray();
|
|
|
33 |
$exceptionWithUserCode = [];
|
|
|
34 |
$exceptionAsArrayCount = count($exceptionAsArray);
|
|
|
35 |
$last = $exceptionAsArrayCount - 1;
|
|
|
36 |
foreach ($exceptionAsArray as $i => $e) {
|
|
|
37 |
foreach ($e['trace'] as $trace) {
|
|
|
38 |
if ($trace['file'] && !str_contains($trace['file'], '/vendor/') && !str_contains($trace['file'], '/var/cache/') && $i < $last) {
|
|
|
39 |
$exceptionWithUserCode[] = $i;
|
|
|
40 |
}
|
|
|
41 |
}
|
|
|
42 |
}
|
|
|
43 |
?>
|
|
|
44 |
<h3 class="tab-title">
|
|
|
45 |
<?php if ($exceptionAsArrayCount > 1) { ?>
|
|
|
46 |
Exceptions <span class="badge"><?= $exceptionAsArrayCount; ?></span>
|
|
|
47 |
<?php } else { ?>
|
|
|
48 |
Exception
|
|
|
49 |
<?php } ?>
|
|
|
50 |
</h3>
|
|
|
51 |
|
|
|
52 |
<div class="tab-content">
|
|
|
53 |
<?php
|
|
|
54 |
foreach ($exceptionAsArray as $i => $e) {
|
|
|
55 |
echo $this->include('views/traces.html.php', [
|
|
|
56 |
'exception' => $e,
|
|
|
57 |
'index' => $i + 1,
|
|
|
58 |
'expand' => in_array($i, $exceptionWithUserCode, true) || ([] === $exceptionWithUserCode && 0 === $i),
|
|
|
59 |
]);
|
|
|
60 |
}
|
|
|
61 |
?>
|
|
|
62 |
</div>
|
|
|
63 |
</div>
|
|
|
64 |
|
|
|
65 |
<?php if ($logger) { ?>
|
|
|
66 |
<div class="tab <?= !$logger->getLogs() ? 'disabled' : ''; ?>">
|
|
|
67 |
<h3 class="tab-title">
|
|
|
68 |
Logs
|
|
|
69 |
<?php if ($logger->countErrors()) { ?><span class="badge status-error"><?= $logger->countErrors(); ?></span><?php } ?>
|
|
|
70 |
</h3>
|
|
|
71 |
|
|
|
72 |
<div class="tab-content">
|
|
|
73 |
<?php if ($logger->getLogs()) { ?>
|
|
|
74 |
<?= $this->include('views/logs.html.php', ['logs' => $logger->getLogs()]); ?>
|
|
|
75 |
<?php } else { ?>
|
|
|
76 |
<div class="empty">
|
|
|
77 |
<p>No log messages</p>
|
|
|
78 |
</div>
|
|
|
79 |
<?php } ?>
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
<?php } ?>
|
|
|
83 |
|
|
|
84 |
<div class="tab">
|
|
|
85 |
<h3 class="tab-title">
|
|
|
86 |
<?php if ($exceptionAsArrayCount > 1) { ?>
|
|
|
87 |
Stack Traces <span class="badge"><?= $exceptionAsArrayCount; ?></span>
|
|
|
88 |
<?php } else { ?>
|
|
|
89 |
Stack Trace
|
|
|
90 |
<?php } ?>
|
|
|
91 |
</h3>
|
|
|
92 |
|
|
|
93 |
<div class="tab-content">
|
|
|
94 |
<?php
|
|
|
95 |
foreach ($exceptionAsArray as $i => $e) {
|
|
|
96 |
echo $this->include('views/traces_text.html.php', [
|
|
|
97 |
'exception' => $e,
|
|
|
98 |
'index' => $i + 1,
|
|
|
99 |
'numExceptions' => $exceptionAsArrayCount,
|
|
|
100 |
]);
|
|
|
101 |
}
|
|
|
102 |
?>
|
|
|
103 |
</div>
|
|
|
104 |
</div>
|
|
|
105 |
|
|
|
106 |
<?php if ($currentContent) { ?>
|
|
|
107 |
<div class="tab">
|
|
|
108 |
<h3 class="tab-title">Output content</h3>
|
|
|
109 |
|
|
|
110 |
<div class="tab-content">
|
|
|
111 |
<?= $currentContent; ?>
|
|
|
112 |
</div>
|
|
|
113 |
</div>
|
|
|
114 |
<?php } ?>
|
|
|
115 |
</div>
|
|
|
116 |
</div>
|