error.html.php
2 years ago
exception.html.php
2 years ago
exception_full.html.php
2 years ago
logs.html.php
2 years ago
trace.html.php
2 years ago
traces.html.php
2 years ago
traces_text.html.php
2 years ago
exception.html.php
176 lines
| 1 | <div class="exception-summary <?php |
| 2 | echo !$exceptionMessage ? 'exception-without-message' : ''; |
| 3 | ?>"> |
| 4 | <div class="exception-metadata"> |
| 5 | <div class="container"> |
| 6 | <h2 class="exception-hierarchy"> |
| 7 | <?php |
| 8 | foreach (\array_reverse($exception->getAllPrevious(), \true) as $index => $previousException) { |
| 9 | ?> |
| 10 | <a href="#trace-box-<?php |
| 11 | echo $index + 2; |
| 12 | ?>"><?php |
| 13 | echo $this->abbrClass($previousException->getClass()); |
| 14 | ?></a> |
| 15 | <span class="icon"><?php |
| 16 | echo $this->include('assets/images/chevron-right.svg'); |
| 17 | ?></span> |
| 18 | <?php |
| 19 | } |
| 20 | ?> |
| 21 | <a href="#trace-box-1"><?php |
| 22 | echo $this->abbrClass($exception->getClass()); |
| 23 | ?></a> |
| 24 | </h2> |
| 25 | <h2 class="exception-http"> |
| 26 | HTTP <?php |
| 27 | echo $statusCode; |
| 28 | ?> <small><?php |
| 29 | echo $statusText; |
| 30 | ?></small> |
| 31 | </h2> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | <div class="exception-message-wrapper"> |
| 36 | <div class="container"> |
| 37 | <h1 class="break-long-words exception-message<?php |
| 38 | echo \mb_strlen($exceptionMessage) > 180 ? ' long' : ''; |
| 39 | ?>"><?php |
| 40 | echo $this->formatFileFromText(\nl2br($exceptionMessage)); |
| 41 | ?></h1> |
| 42 | |
| 43 | <div class="exception-illustration hidden-xs-down"> |
| 44 | <?php |
| 45 | echo $this->include('assets/images/symfony-ghost.svg.php'); |
| 46 | ?> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | </div> |
| 51 | |
| 52 | <div class="container"> |
| 53 | <div class="sf-tabs"> |
| 54 | <div class="tab"> |
| 55 | <?php |
| 56 | $exceptionAsArray = $exception->toArray(); |
| 57 | $exceptionWithUserCode = []; |
| 58 | $exceptionAsArrayCount = \count($exceptionAsArray); |
| 59 | $last = $exceptionAsArrayCount - 1; |
| 60 | foreach ($exceptionAsArray as $i => $e) { |
| 61 | foreach ($e['trace'] as $trace) { |
| 62 | if ($trace['file'] && \false === \mb_strpos($trace['file'], '/vendor/') && \false === \mb_strpos($trace['file'], '/var/cache/') && $i < $last) { |
| 63 | $exceptionWithUserCode[] = $i; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | ?> |
| 68 | <h3 class="tab-title"> |
| 69 | <?php |
| 70 | if ($exceptionAsArrayCount > 1) { |
| 71 | ?> |
| 72 | Exceptions <span class="badge"><?php |
| 73 | echo $exceptionAsArrayCount; |
| 74 | ?></span> |
| 75 | <?php |
| 76 | } else { |
| 77 | ?> |
| 78 | Exception |
| 79 | <?php |
| 80 | } |
| 81 | ?> |
| 82 | </h3> |
| 83 | |
| 84 | <div class="tab-content"> |
| 85 | <?php |
| 86 | foreach ($exceptionAsArray as $i => $e) { |
| 87 | echo $this->include('views/traces.html.php', ['exception' => $e, 'index' => $i + 1, 'expand' => \in_array($i, $exceptionWithUserCode, \true) || [] === $exceptionWithUserCode && 0 === $i]); |
| 88 | } |
| 89 | ?> |
| 90 | </div> |
| 91 | </div> |
| 92 | |
| 93 | <?php |
| 94 | if ($logger) { |
| 95 | ?> |
| 96 | <div class="tab <?php |
| 97 | echo !$logger->getLogs() ? 'disabled' : ''; |
| 98 | ?>"> |
| 99 | <h3 class="tab-title"> |
| 100 | Logs |
| 101 | <?php |
| 102 | if ($logger->countErrors()) { |
| 103 | ?><span class="badge status-error"><?php |
| 104 | echo $logger->countErrors(); |
| 105 | ?></span><?php |
| 106 | } |
| 107 | ?> |
| 108 | </h3> |
| 109 | |
| 110 | <div class="tab-content"> |
| 111 | <?php |
| 112 | if ($logger->getLogs()) { |
| 113 | ?> |
| 114 | <?php |
| 115 | echo $this->include('views/logs.html.php', ['logs' => $logger->getLogs()]); |
| 116 | ?> |
| 117 | <?php |
| 118 | } else { |
| 119 | ?> |
| 120 | <div class="empty"> |
| 121 | <p>No log messages</p> |
| 122 | </div> |
| 123 | <?php |
| 124 | } |
| 125 | ?> |
| 126 | </div> |
| 127 | </div> |
| 128 | <?php |
| 129 | } |
| 130 | ?> |
| 131 | |
| 132 | <div class="tab"> |
| 133 | <h3 class="tab-title"> |
| 134 | <?php |
| 135 | if ($exceptionAsArrayCount > 1) { |
| 136 | ?> |
| 137 | Stack Traces <span class="badge"><?php |
| 138 | echo $exceptionAsArrayCount; |
| 139 | ?></span> |
| 140 | <?php |
| 141 | } else { |
| 142 | ?> |
| 143 | Stack Trace |
| 144 | <?php |
| 145 | } |
| 146 | ?> |
| 147 | </h3> |
| 148 | |
| 149 | <div class="tab-content"> |
| 150 | <?php |
| 151 | foreach ($exceptionAsArray as $i => $e) { |
| 152 | echo $this->include('views/traces_text.html.php', ['exception' => $e, 'index' => $i + 1, 'numExceptions' => $exceptionAsArrayCount]); |
| 153 | } |
| 154 | ?> |
| 155 | </div> |
| 156 | </div> |
| 157 | |
| 158 | <?php |
| 159 | if ($currentContent) { |
| 160 | ?> |
| 161 | <div class="tab"> |
| 162 | <h3 class="tab-title">Output content</h3> |
| 163 | |
| 164 | <div class="tab-content"> |
| 165 | <?php |
| 166 | echo $currentContent; |
| 167 | ?> |
| 168 | </div> |
| 169 | </div> |
| 170 | <?php |
| 171 | } |
| 172 | ?> |
| 173 | </div> |
| 174 | </div> |
| 175 | <?php |
| 176 |