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
traces.html.php
85 lines
| 1 | <div class="trace trace-as-html" id="trace-box-<?php |
| 2 | echo $index; |
| 3 | ?>"> |
| 4 | <div class="trace-details"> |
| 5 | <div class="trace-head"> |
| 6 | <div class="sf-toggle" data-toggle-selector="#trace-html-<?php |
| 7 | echo $index; |
| 8 | ?>" data-toggle-initial="<?php |
| 9 | echo $expand ? 'display' : ''; |
| 10 | ?>"> |
| 11 | <span class="icon icon-close"><?php |
| 12 | echo $this->include('assets/images/icon-minus-square-o.svg'); |
| 13 | ?></span> |
| 14 | <span class="icon icon-open"><?php |
| 15 | echo $this->include('assets/images/icon-plus-square-o.svg'); |
| 16 | ?></span> |
| 17 | <?php |
| 18 | $separator = \strrpos($exception['class'], '\\'); |
| 19 | $separator = \false === $separator ? 0 : $separator + 1; |
| 20 | $namespace = \substr($exception['class'], 0, $separator); |
| 21 | $class = \substr($exception['class'], $separator); |
| 22 | ?> |
| 23 | <?php |
| 24 | if ('' === $class) { |
| 25 | ?> |
| 26 | <br> |
| 27 | <?php |
| 28 | } else { |
| 29 | ?> |
| 30 | <h3 class="trace-class"> |
| 31 | <?php |
| 32 | if ('' !== $namespace) { |
| 33 | ?> |
| 34 | <span class="trace-namespace"><?php |
| 35 | echo $namespace; |
| 36 | ?></span> |
| 37 | <?php |
| 38 | } |
| 39 | ?> |
| 40 | <?php |
| 41 | echo $class; |
| 42 | ?> |
| 43 | </h3> |
| 44 | <?php |
| 45 | } |
| 46 | ?> |
| 47 | <?php |
| 48 | if ($exception['message'] && $index > 1) { |
| 49 | ?> |
| 50 | <p class="break-long-words trace-message"><?php |
| 51 | echo $this->escape($exception['message']); |
| 52 | ?></p> |
| 53 | <?php |
| 54 | } |
| 55 | ?> |
| 56 | </div> |
| 57 | </div> |
| 58 | |
| 59 | <div id="trace-html-<?php |
| 60 | echo $index; |
| 61 | ?>" class="sf-toggle-content"> |
| 62 | <?php |
| 63 | $isFirstUserCode = \true; |
| 64 | foreach ($exception['trace'] as $i => $trace) { |
| 65 | $isVendorTrace = $trace['file'] && (\false !== \mb_strpos($trace['file'], '/vendor/') || \false !== \mb_strpos($trace['file'], '/var/cache/')); |
| 66 | $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace; |
| 67 | if ($displayCodeSnippet) { |
| 68 | $isFirstUserCode = \false; |
| 69 | } |
| 70 | ?> |
| 71 | <div class="trace-line <?php |
| 72 | echo $isVendorTrace ? 'trace-from-vendor' : ''; |
| 73 | ?>"> |
| 74 | <?php |
| 75 | echo $this->include('views/trace.html.php', ['prefix' => $index, 'i' => $i, 'trace' => $trace, 'style' => $isVendorTrace ? 'compact' : ($displayCodeSnippet ? 'expanded' : '')]); |
| 76 | ?> |
| 77 | </div> |
| 78 | <?php |
| 79 | } |
| 80 | ?> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |
| 84 | <?php |
| 85 |