Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
vendor
/
slim
/
slim
/
Slim
/
Error
/
File Content:
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; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
Renderers
---
0755
AbstractErrorRenderer.php
1200 bytes
0644
N4ST4R_ID | Naxtarrr