░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/slim/slim/Slim/Error
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: AbstractErrorRenderer.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; use Slim\Exception\HttpException; use Slim\Interfaces\ErrorRendererInterface; use Throwable; /** * Abstract Slim application error renderer * * It outputs the error message and diagnostic information in one of the following formats: * JSON, XML, Plain Text or HTML */ abstract class AbstractErrorRenderer implements ErrorRendererInterface { protected string $defaultErrorTitle = 'Slim Application Error'; protected string $defaultErrorDescription = 'A website error has occurred. Sorry for the temporary inconvenience.'; protected function getErrorTitle(Throwable $exception): string { if ($exception instanceof HttpException) { return $exception->getTitle(); } return $this->defaultErrorTitle; } protected function getErrorDescription(Throwable $exception): string { if ($exception instanceof HttpException) { return $exception->getDescription(); } return $this->defaultErrorDescription; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 Renderers/
DIR
—
2026-02-11 01:44
📄 AbstractErrorRenderer.php
PHP
1.2 KB
2026-02-11 01:44
EDIT