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
trace.html.php
106 lines
| 1 | <div class="trace-line-header break-long-words <?php |
| 2 | echo $trace['file'] ? 'sf-toggle' : ''; |
| 3 | ?>" data-toggle-selector="#trace-html-<?php |
| 4 | echo $prefix; |
| 5 | ?>-<?php |
| 6 | echo $i; |
| 7 | ?>" data-toggle-initial="<?php |
| 8 | echo 'expanded' === $style ? 'display' : ''; |
| 9 | ?>"> |
| 10 | <?php |
| 11 | if ($trace['file']) { |
| 12 | ?> |
| 13 | <span class="icon icon-close"><?php |
| 14 | echo $this->include('assets/images/icon-minus-square.svg'); |
| 15 | ?></span> |
| 16 | <span class="icon icon-open"><?php |
| 17 | echo $this->include('assets/images/icon-plus-square.svg'); |
| 18 | ?></span> |
| 19 | <?php |
| 20 | } |
| 21 | ?> |
| 22 | |
| 23 | <?php |
| 24 | if ('compact' !== $style && $trace['function']) { |
| 25 | ?> |
| 26 | <span class="trace-class"><?php |
| 27 | echo $this->abbrClass($trace['class']); |
| 28 | ?></span><?php |
| 29 | if ($trace['type']) { |
| 30 | ?><span class="trace-type"><?php |
| 31 | echo $trace['type']; |
| 32 | ?></span><?php |
| 33 | } |
| 34 | ?><span class="trace-method"><?php |
| 35 | echo $trace['function']; |
| 36 | ?></span><?php |
| 37 | if (isset($trace['args'])) { |
| 38 | ?><span class="trace-arguments">(<?php |
| 39 | echo $this->formatArgs($trace['args']); |
| 40 | ?>)</span><?php |
| 41 | } |
| 42 | ?> |
| 43 | <?php |
| 44 | } |
| 45 | ?> |
| 46 | |
| 47 | <?php |
| 48 | if ($trace['file']) { |
| 49 | ?> |
| 50 | <?php |
| 51 | $lineNumber = $trace['line'] ?: 1; |
| 52 | $fileLink = $this->getFileLink($trace['file'], $lineNumber); |
| 53 | $filePath = \strtr(\strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line ' . $lineNumber => '']); |
| 54 | $filePathParts = \explode(\DIRECTORY_SEPARATOR, $filePath); |
| 55 | ?> |
| 56 | <span class="block trace-file-path"> |
| 57 | in |
| 58 | <a href="<?php |
| 59 | echo $fileLink; |
| 60 | ?>"> |
| 61 | <?php |
| 62 | echo \implode(\DIRECTORY_SEPARATOR, \array_slice($filePathParts, 0, -1)) . \DIRECTORY_SEPARATOR; |
| 63 | ?><strong><?php |
| 64 | echo \end($filePathParts); |
| 65 | ?></strong> |
| 66 | </a> |
| 67 | <?php |
| 68 | if ('compact' === $style && $trace['function']) { |
| 69 | ?> |
| 70 | <span class="trace-type"><?php |
| 71 | echo $trace['type']; |
| 72 | ?></span> |
| 73 | <span class="trace-method"><?php |
| 74 | echo $trace['function']; |
| 75 | ?></span> |
| 76 | <?php |
| 77 | } |
| 78 | ?> |
| 79 | (line <?php |
| 80 | echo $lineNumber; |
| 81 | ?>) |
| 82 | <span class="icon icon-copy hidden" data-clipboard-text="<?php |
| 83 | echo \implode(\DIRECTORY_SEPARATOR, $filePathParts) . ':' . $lineNumber; |
| 84 | ?>"> |
| 85 | <?php |
| 86 | echo $this->include('assets/images/icon-copy.svg'); |
| 87 | ?> |
| 88 | </span> |
| 89 | </span> |
| 90 | <?php |
| 91 | } |
| 92 | ?> |
| 93 | </div> |
| 94 | <?php |
| 95 | if ($trace['file']) { |
| 96 | ?> |
| 97 | <div id="trace-html-<?php |
| 98 | echo $prefix . '-' . $i; |
| 99 | ?>" class="trace-code sf-toggle-content"> |
| 100 | <?php |
| 101 | echo \strtr($this->fileExcerpt($trace['file'], $trace['line'], 5), ['#DD0000' => 'var(--highlight-string)', '#007700' => 'var(--highlight-keyword)', '#0000BB' => 'var(--highlight-default)', '#FF8000' => 'var(--highlight-comment)']); |
| 102 | ?> |
| 103 | </div> |
| 104 | <?php |
| 105 | } |
| 106 |