░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/slim/slim/Slim/Error/Renderers
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: PlainTextErrorRenderer.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License) */ declare(strict_types=1); namespace Slim\Error\Renderers; use Slim\Error\AbstractErrorRenderer; use Throwable; use function get_class; use function htmlentities; use function sprintf; /** * Default Slim application Plain Text Error Renderer */ class PlainTextErrorRenderer extends AbstractErrorRenderer { public function __invoke(Throwable $exception, bool $displayErrorDetails): string { $text = "{$this->getErrorTitle($exception)}\n"; if ($displayErrorDetails) { $text .= $this->formatExceptionFragment($exception); while ($exception = $exception->getPrevious()) { $text .= "\nPrevious Error:\n"; $text .= $this->formatExceptionFragment($exception); } } return $text; } private function formatExceptionFragment(Throwable $exception): string { $text = sprintf("Type: %s\n", get_class($exception)); $code = $exception->getCode(); /** @var int|string $code */ $text .= sprintf("Code: %s\n", $code); $text .= sprintf("Message: %s\n", htmlentities($exception->getMessage())); $text .= sprintf("File: %s\n", $exception->getFile()); $text .= sprintf("Line: %s\n", $exception->getLine()); $text .= sprintf('Trace: %s', $exception->getTraceAsString()); return $text; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 HtmlErrorRenderer.php
PHP
2.7 KB
2026-02-11 01:44
EDIT
📄 JsonErrorRenderer.php
PHP
1.4 KB
2026-02-11 01:44
EDIT
📄 PlainTextErrorRenderer.php
PHP
1.5 KB
2026-02-11 01:44
EDIT
📄 XmlErrorRenderer.php
PHP
1.6 KB
2026-02-11 01:44
EDIT