Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										21
									
								
								vendor/symfony/error-handler/Resources/views/error.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								vendor/symfony/error-handler/Resources/views/error.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,21 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="<?= $this->charset; ?>" />
 | 
			
		||||
    <meta name="robots" content="noindex,nofollow,noarchive" />
 | 
			
		||||
    <title>An Error Occurred: <?= $statusText; ?></title>
 | 
			
		||||
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>" />
 | 
			
		||||
    <style><?= $this->include('assets/css/error.css'); ?></style>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
<div class="container">
 | 
			
		||||
    <h1>Oops! An Error Occurred</h1>
 | 
			
		||||
    <h2>The server returned a "<?= $statusCode; ?> <?= $statusText; ?>".</h2>
 | 
			
		||||
 | 
			
		||||
    <p>
 | 
			
		||||
        Something is broken. Please let us know what you were doing when this error occurred.
 | 
			
		||||
        We will fix it as soon as possible. Sorry for any inconvenience caused.
 | 
			
		||||
    </p>
 | 
			
		||||
</div>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										115
									
								
								vendor/symfony/error-handler/Resources/views/exception.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								vendor/symfony/error-handler/Resources/views/exception.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,115 @@
 | 
			
		||||
<div class="exception-summary <?= !$exceptionMessage ? 'exception-without-message' : ''; ?>">
 | 
			
		||||
    <div class="exception-metadata">
 | 
			
		||||
        <div class="container">
 | 
			
		||||
            <h2 class="exception-hierarchy">
 | 
			
		||||
                <?php foreach (array_reverse($exception->getAllPrevious(), true) as $index => $previousException) { ?>
 | 
			
		||||
                    <a href="#trace-box-<?= $index + 2; ?>"><?= $this->abbrClass($previousException->getClass()); ?></a>
 | 
			
		||||
                    <span class="icon"><?= $this->include('assets/images/chevron-right.svg'); ?></span>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
                <a href="#trace-box-1"><?= $this->abbrClass($exception->getClass()); ?></a>
 | 
			
		||||
            </h2>
 | 
			
		||||
            <h2 class="exception-http">
 | 
			
		||||
                HTTP <?= $statusCode; ?> <small><?= $statusText; ?></small>
 | 
			
		||||
            </h2>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="exception-message-wrapper">
 | 
			
		||||
        <div class="container">
 | 
			
		||||
            <h1 class="break-long-words exception-message<?= mb_strlen($exceptionMessage) > 180 ? ' long' : ''; ?>"><?= $this->formatFileFromText(nl2br($exceptionMessage)); ?></h1>
 | 
			
		||||
 | 
			
		||||
            <div class="exception-illustration hidden-xs-down">
 | 
			
		||||
                <?= $this->include('assets/images/symfony-ghost.svg.php'); ?>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
    <div class="sf-tabs">
 | 
			
		||||
        <div class="tab">
 | 
			
		||||
            <?php
 | 
			
		||||
            $exceptionAsArray = $exception->toArray();
 | 
			
		||||
            $exceptionWithUserCode = [];
 | 
			
		||||
            $exceptionAsArrayCount = count($exceptionAsArray);
 | 
			
		||||
            $last = $exceptionAsArrayCount - 1;
 | 
			
		||||
            foreach ($exceptionAsArray as $i => $e) {
 | 
			
		||||
                foreach ($e['trace'] as $trace) {
 | 
			
		||||
                    if ($trace['file'] && !str_contains($trace['file'], '/vendor/') && !str_contains($trace['file'], '/var/cache/') && $i < $last) {
 | 
			
		||||
                        $exceptionWithUserCode[] = $i;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            ?>
 | 
			
		||||
            <h3 class="tab-title">
 | 
			
		||||
                <?php if ($exceptionAsArrayCount > 1) { ?>
 | 
			
		||||
                    Exceptions <span class="badge"><?= $exceptionAsArrayCount; ?></span>
 | 
			
		||||
                <?php } else { ?>
 | 
			
		||||
                    Exception
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            </h3>
 | 
			
		||||
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
                <?php
 | 
			
		||||
                foreach ($exceptionAsArray as $i => $e) {
 | 
			
		||||
                    echo $this->include('views/traces.html.php', [
 | 
			
		||||
                        'exception' => $e,
 | 
			
		||||
                        'index' => $i + 1,
 | 
			
		||||
                        'expand' => in_array($i, $exceptionWithUserCode, true) || ([] === $exceptionWithUserCode && 0 === $i),
 | 
			
		||||
                    ]);
 | 
			
		||||
                }
 | 
			
		||||
                ?>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <?php if ($logger) { ?>
 | 
			
		||||
        <div class="tab <?= !$logger->getLogs() ? 'disabled' : ''; ?>">
 | 
			
		||||
            <h3 class="tab-title">
 | 
			
		||||
                Logs
 | 
			
		||||
                <?php if ($logger->countErrors()) { ?><span class="badge status-error"><?= $logger->countErrors(); ?></span><?php } ?>
 | 
			
		||||
            </h3>
 | 
			
		||||
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
                <?php if ($logger->getLogs()) { ?>
 | 
			
		||||
                    <?= $this->include('views/logs.html.php', ['logs' => $logger->getLogs()]); ?>
 | 
			
		||||
                <?php } else { ?>
 | 
			
		||||
                    <div class="empty">
 | 
			
		||||
                        <p>No log messages</p>
 | 
			
		||||
                    </div>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <?php } ?>
 | 
			
		||||
 | 
			
		||||
        <div class="tab">
 | 
			
		||||
            <h3 class="tab-title">
 | 
			
		||||
                <?php if ($exceptionAsArrayCount > 1) { ?>
 | 
			
		||||
                    Stack Traces <span class="badge"><?= $exceptionAsArrayCount; ?></span>
 | 
			
		||||
                <?php } else { ?>
 | 
			
		||||
                    Stack Trace
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            </h3>
 | 
			
		||||
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
                <?php
 | 
			
		||||
                foreach ($exceptionAsArray as $i => $e) {
 | 
			
		||||
                    echo $this->include('views/traces_text.html.php', [
 | 
			
		||||
                        'exception' => $e,
 | 
			
		||||
                        'index' => $i + 1,
 | 
			
		||||
                        'numExceptions' => $exceptionAsArrayCount,
 | 
			
		||||
                    ]);
 | 
			
		||||
                }
 | 
			
		||||
                ?>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <?php if ($currentContent) { ?>
 | 
			
		||||
        <div class="tab">
 | 
			
		||||
            <h3 class="tab-title">Output content</h3>
 | 
			
		||||
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
                <?= $currentContent; ?>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <?php } ?>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										42
									
								
								vendor/symfony/error-handler/Resources/views/exception_full.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								vendor/symfony/error-handler/Resources/views/exception_full.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,42 @@
 | 
			
		||||
<!-- <?= $_message = \sprintf('%s (%d %s)', $exceptionMessage, $statusCode, $statusText); ?> -->
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
    <head>
 | 
			
		||||
        <meta charset="<?= $this->charset; ?>" />
 | 
			
		||||
        <meta name="robots" content="noindex,nofollow" />
 | 
			
		||||
        <meta name="viewport" content="width=device-width,initial-scale=1" />
 | 
			
		||||
        <title><?= $_message; ?></title>
 | 
			
		||||
        <link rel="icon" type="image/png" href="<?= $this->include('assets/images/favicon.png.base64'); ?>" />
 | 
			
		||||
        <style><?= $this->include('assets/css/exception.css'); ?></style>
 | 
			
		||||
        <style><?= $this->include('assets/css/exception_full.css'); ?></style>
 | 
			
		||||
    </head>
 | 
			
		||||
    <body>
 | 
			
		||||
        <script>
 | 
			
		||||
            document.body.classList.add(
 | 
			
		||||
                localStorage.getItem('symfony/profiler/theme') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'theme-dark' : 'theme-light')
 | 
			
		||||
            );
 | 
			
		||||
        </script>
 | 
			
		||||
 | 
			
		||||
        <?php if (class_exists(\Symfony\Component\HttpKernel\Kernel::class)) { ?>
 | 
			
		||||
            <header>
 | 
			
		||||
                <div class="container">
 | 
			
		||||
                    <h1 class="logo"><?= $this->include('assets/images/symfony-logo.svg'); ?> Symfony Exception</h1>
 | 
			
		||||
 | 
			
		||||
                    <div class="help-link">
 | 
			
		||||
                        <a href="https://symfony.com/doc/<?= Symfony\Component\HttpKernel\Kernel::VERSION; ?>/index.html">
 | 
			
		||||
                            <span class="icon"><?= $this->include('assets/images/icon-book.svg'); ?></span>
 | 
			
		||||
                            <span class="hidden-xs-down">Symfony</span> Docs
 | 
			
		||||
                        </a>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </header>
 | 
			
		||||
        <?php } ?>
 | 
			
		||||
 | 
			
		||||
        <?= $this->include('views/exception.html.php', $context); ?>
 | 
			
		||||
 | 
			
		||||
        <script>
 | 
			
		||||
            <?= $this->include('assets/js/exception.js'); ?>
 | 
			
		||||
        </script>
 | 
			
		||||
    </body>
 | 
			
		||||
</html>
 | 
			
		||||
<!-- <?= $_message; ?> -->
 | 
			
		||||
							
								
								
									
										45
									
								
								vendor/symfony/error-handler/Resources/views/logs.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								vendor/symfony/error-handler/Resources/views/logs.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,45 @@
 | 
			
		||||
<table class="logs" data-filter-level="Emergency,Alert,Critical,Error,Warning,Notice,Info,Debug" data-filters>
 | 
			
		||||
<?php $channelIsDefined = isset($logs[0]['channel']); ?>
 | 
			
		||||
    <thead>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th data-filter="level">Level</th>
 | 
			
		||||
            <?php if ($channelIsDefined) { ?><th data-filter="channel">Channel</th><?php } ?>
 | 
			
		||||
            <th class="full-width">Message</th>
 | 
			
		||||
        </tr>
 | 
			
		||||
    </thead>
 | 
			
		||||
 | 
			
		||||
    <tbody>
 | 
			
		||||
    <?php
 | 
			
		||||
    foreach ($logs as $log) {
 | 
			
		||||
        if ($log['priority'] >= 400) {
 | 
			
		||||
            $status = 'error';
 | 
			
		||||
        } elseif ($log['priority'] >= 300) {
 | 
			
		||||
            $status = 'warning';
 | 
			
		||||
        } else {
 | 
			
		||||
            $severity = 0;
 | 
			
		||||
            if (($exception = $log['context']['exception'] ?? null) instanceof \ErrorException || $exception instanceof \Symfony\Component\ErrorHandler\Exception\SilencedErrorContext) {
 | 
			
		||||
                $severity = $exception->getSeverity();
 | 
			
		||||
            }
 | 
			
		||||
            $status = \E_DEPRECATED === $severity || \E_USER_DEPRECATED === $severity ? 'warning' : 'normal';
 | 
			
		||||
        } ?>
 | 
			
		||||
        <tr class="status-<?= $status; ?>" data-filter-level="<?= strtolower($this->escape($log['priorityName'])); ?>"<?php if ($channelIsDefined) { ?> data-filter-channel="<?= $this->escape($log['channel']); ?>"<?php } ?>>
 | 
			
		||||
            <td class="text-small nowrap">
 | 
			
		||||
                <span class="colored text-bold"><?= $this->escape($log['priorityName']); ?></span>
 | 
			
		||||
                <span class="text-muted newline"><?= date('H:i:s', $log['timestamp']); ?></span>
 | 
			
		||||
            </td>
 | 
			
		||||
            <?php if ($channelIsDefined) { ?>
 | 
			
		||||
            <td class="text-small text-bold nowrap">
 | 
			
		||||
                <?= $this->escape($log['channel']); ?>
 | 
			
		||||
            </td>
 | 
			
		||||
            <?php } ?>
 | 
			
		||||
            <td>
 | 
			
		||||
                <?= $this->formatLogMessage($log['message'], $log['context']); ?>
 | 
			
		||||
                <?php if ($log['context']) { ?>
 | 
			
		||||
                <pre class="text-muted prewrap m-t-5"><?= $this->escape(json_encode($log['context'], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES)); ?></pre>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
    <?php
 | 
			
		||||
    } ?>
 | 
			
		||||
    </tbody>
 | 
			
		||||
</table>
 | 
			
		||||
							
								
								
									
										43
									
								
								vendor/symfony/error-handler/Resources/views/trace.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								vendor/symfony/error-handler/Resources/views/trace.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,43 @@
 | 
			
		||||
<div class="trace-line-header break-long-words <?= $trace['file'] ? 'sf-toggle' : ''; ?>" data-toggle-selector="#trace-html-<?= $prefix; ?>-<?= $i; ?>" data-toggle-initial="<?= 'expanded' === $style ? 'display' : ''; ?>">
 | 
			
		||||
    <?php if ($trace['file']) { ?>
 | 
			
		||||
        <span class="icon icon-close"><?= $this->include('assets/images/icon-minus-square.svg'); ?></span>
 | 
			
		||||
        <span class="icon icon-open"><?= $this->include('assets/images/icon-plus-square.svg'); ?></span>
 | 
			
		||||
    <?php } ?>
 | 
			
		||||
 | 
			
		||||
    <?php if ('compact' !== $style && $trace['function']) { ?>
 | 
			
		||||
        <span class="trace-class"><?= $this->abbrClass($trace['class']); ?></span><?php if ($trace['type']) { ?><span class="trace-type"><?= $trace['type']; ?></span><?php } ?><span class="trace-method"><?= $trace['function']; ?></span><?php if (isset($trace['args'])) { ?><span class="trace-arguments">(<?= $this->formatArgs($trace['args']); ?>)</span><?php } ?>
 | 
			
		||||
    <?php } ?>
 | 
			
		||||
 | 
			
		||||
    <?php if ($trace['file']) { ?>
 | 
			
		||||
        <?php
 | 
			
		||||
        $lineNumber = $trace['line'] ?: 1;
 | 
			
		||||
        $fileLink = $this->fileLinkFormat->format($trace['file'], $lineNumber);
 | 
			
		||||
        $filePath = strtr(strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line '.$lineNumber => '']);
 | 
			
		||||
        $filePathParts = explode(\DIRECTORY_SEPARATOR, $filePath);
 | 
			
		||||
        ?>
 | 
			
		||||
        <span class="block trace-file-path">
 | 
			
		||||
            in
 | 
			
		||||
            <a href="<?= $fileLink; ?>">
 | 
			
		||||
                <?= implode(\DIRECTORY_SEPARATOR, array_slice($filePathParts, 0, -1)).\DIRECTORY_SEPARATOR; ?><strong><?= end($filePathParts); ?></strong>
 | 
			
		||||
            </a>
 | 
			
		||||
            <?php if ('compact' === $style && $trace['function']) { ?>
 | 
			
		||||
                <span class="trace-type"><?= $trace['type']; ?></span>
 | 
			
		||||
                <span class="trace-method"><?= $trace['function']; ?></span>
 | 
			
		||||
            <?php } ?>
 | 
			
		||||
            (line <?= $lineNumber; ?>)
 | 
			
		||||
            <span class="icon icon-copy hidden" data-clipboard-text="<?php echo implode(\DIRECTORY_SEPARATOR, $filePathParts).':'.$lineNumber; ?>">
 | 
			
		||||
                <?php echo $this->include('assets/images/icon-copy.svg'); ?>
 | 
			
		||||
            </span>
 | 
			
		||||
        </span>
 | 
			
		||||
    <?php } ?>
 | 
			
		||||
</div>
 | 
			
		||||
<?php if ($trace['file']) { ?>
 | 
			
		||||
    <div id="trace-html-<?= $prefix.'-'.$i; ?>" class="trace-code sf-toggle-content">
 | 
			
		||||
        <?= strtr($this->fileExcerpt($trace['file'], $trace['line'], 5), [
 | 
			
		||||
            '#DD0000' => 'var(--highlight-string)',
 | 
			
		||||
            '#007700' => 'var(--highlight-keyword)',
 | 
			
		||||
            '#0000BB' => 'var(--highlight-default)',
 | 
			
		||||
            '#FF8000' => 'var(--highlight-comment)',
 | 
			
		||||
        ]); ?>
 | 
			
		||||
    </div>
 | 
			
		||||
<?php } ?>
 | 
			
		||||
							
								
								
									
										59
									
								
								vendor/symfony/error-handler/Resources/views/traces.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								vendor/symfony/error-handler/Resources/views/traces.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,59 @@
 | 
			
		||||
<div class="trace trace-as-html" id="trace-box-<?= $index; ?>">
 | 
			
		||||
    <div class="trace-details">
 | 
			
		||||
        <div class="trace-head">
 | 
			
		||||
            <div class="sf-toggle" data-toggle-selector="#trace-html-<?= $index; ?>" data-toggle-initial="<?= $expand ? 'display' : ''; ?>">
 | 
			
		||||
                <span class="icon icon-close"><?= $this->include('assets/images/icon-minus-square-o.svg'); ?></span>
 | 
			
		||||
                <span class="icon icon-open"><?= $this->include('assets/images/icon-plus-square-o.svg'); ?></span>
 | 
			
		||||
                <?php
 | 
			
		||||
                $separator = strrpos($exception['class'], '\\');
 | 
			
		||||
                $separator = false === $separator ? 0 : $separator + 1;
 | 
			
		||||
 | 
			
		||||
                $namespace = substr($exception['class'], 0, $separator);
 | 
			
		||||
                $class = substr($exception['class'], $separator);
 | 
			
		||||
                ?>
 | 
			
		||||
                <?php if ('' === $class) { ?>
 | 
			
		||||
                    <br>
 | 
			
		||||
                <?php } else { ?>
 | 
			
		||||
                    <h3 class="trace-class">
 | 
			
		||||
                        <?php if ('' !== $namespace) { ?>
 | 
			
		||||
                            <span class="trace-namespace"><?= $namespace; ?></span>
 | 
			
		||||
                        <?php } ?>
 | 
			
		||||
                        <?= $class; ?>
 | 
			
		||||
                    </h3>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
                <?php if ($exception['message'] && $index > 1) { ?>
 | 
			
		||||
                    <p class="break-long-words trace-message"><?= $this->escape($exception['message']); ?></p>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            </div>
 | 
			
		||||
            <?php if (\count($exception['data'] ?? [])) { ?>
 | 
			
		||||
                <details class="exception-properties-wrapper">
 | 
			
		||||
                    <summary>Show exception properties</summary>
 | 
			
		||||
                    <div class="exception-properties">
 | 
			
		||||
                        <?= $this->dumpValue($exception['data']) ?>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </details>
 | 
			
		||||
            <?php } ?>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div id="trace-html-<?= $index; ?>" class="sf-toggle-content">
 | 
			
		||||
        <?php
 | 
			
		||||
        $isFirstUserCode = true;
 | 
			
		||||
        foreach ($exception['trace'] as $i => $trace) {
 | 
			
		||||
            $isVendorTrace = $trace['file'] && (str_contains($trace['file'], '/vendor/') || str_contains($trace['file'], '/var/cache/'));
 | 
			
		||||
            $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace;
 | 
			
		||||
            if ($displayCodeSnippet) {
 | 
			
		||||
                $isFirstUserCode = false;
 | 
			
		||||
            } ?>
 | 
			
		||||
            <div class="trace-line <?= $isVendorTrace ? 'trace-from-vendor' : ''; ?>">
 | 
			
		||||
                <?= $this->include('views/trace.html.php', [
 | 
			
		||||
                    'prefix' => $index,
 | 
			
		||||
                    'i' => $i,
 | 
			
		||||
                    'trace' => $trace,
 | 
			
		||||
                    'style' => $isVendorTrace ? 'compact' : ($displayCodeSnippet ? 'expanded' : ''),
 | 
			
		||||
                ]); ?>
 | 
			
		||||
            </div>
 | 
			
		||||
            <?php
 | 
			
		||||
        } ?>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										43
									
								
								vendor/symfony/error-handler/Resources/views/traces_text.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								vendor/symfony/error-handler/Resources/views/traces_text.html.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,43 @@
 | 
			
		||||
<table class="trace trace-as-text">
 | 
			
		||||
    <thead class="trace-head">
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th class="sf-toggle" data-toggle-selector="#trace-text-<?= $index; ?>" data-toggle-initial="<?= 1 === $index ? 'display' : ''; ?>">
 | 
			
		||||
                <div class="trace-class">
 | 
			
		||||
                    <?php if ($numExceptions > 1) { ?>
 | 
			
		||||
                        <span class="text-muted">[<?= $numExceptions - $index + 1; ?>/<?= $numExceptions; ?>]</span>
 | 
			
		||||
                    <?php } ?>
 | 
			
		||||
                    <?= ($parts = explode('\\', $exception['class'])) ? end($parts) : ''; ?>
 | 
			
		||||
                    <span class="icon icon-close"><?= $this->include('assets/images/icon-minus-square-o.svg'); ?></span>
 | 
			
		||||
                    <span class="icon icon-open"><?= $this->include('assets/images/icon-plus-square-o.svg'); ?></span>
 | 
			
		||||
                </div>
 | 
			
		||||
            </th>
 | 
			
		||||
        </tr>
 | 
			
		||||
    </thead>
 | 
			
		||||
 | 
			
		||||
    <tbody id="trace-text-<?= $index; ?>">
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>
 | 
			
		||||
                <?php if ($exception['trace']) { ?>
 | 
			
		||||
                <pre class="stacktrace">
 | 
			
		||||
<?php
 | 
			
		||||
                    echo $this->escape($exception['class']).":\n";
 | 
			
		||||
                    if ($exception['message']) {
 | 
			
		||||
                        echo $this->escape($exception['message'])."\n";
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    foreach ($exception['trace'] as $trace) {
 | 
			
		||||
                        echo "\n  ";
 | 
			
		||||
                        if ($trace['function']) {
 | 
			
		||||
                            echo $this->escape('at '.$trace['class'].$trace['type'].$trace['function']).'('.(isset($trace['args']) ? $this->formatArgsAsText($trace['args']) : '').')';
 | 
			
		||||
                        }
 | 
			
		||||
                        if ($trace['file'] && $trace['line']) {
 | 
			
		||||
                            echo($trace['function'] ? "\n     (" : 'at ').strtr(strip_tags($this->formatFile($trace['file'], $trace['line'])), [' at line '.$trace['line'] => '']).':'.$trace['line'].($trace['function'] ? ')' : '');
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
?>
 | 
			
		||||
                </pre>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
    </tbody>
 | 
			
		||||
</table>
 | 
			
		||||
		Reference in New Issue
	
	Block a user