Site-Ception
A beautiful exception-handler for TYPO3 — highly inspired by Laravel's facade/ignition package.
Requirements
TYPO3 v10.4 PHP 7.4 (might work aswell on 7.2/.3 — not tested!)
Installation & Configuration
composer req site/site-ception
After installation via composer you need to add those lines into your /typo3conf/AdditionalConfiguration.php
file;
if (PHP_SAPI !== 'cli') {
include 'helpers.php';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandler'] = \Site\SiteCeption\Error\ErrorHandler::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'] = \Site\SiteCeption\Error\DebugExceptionHandler::class;
}
Download the helpers.php
from here: https://github.com/iammati/iammati/blob/master/helpers.php
and save it here /typo3conf/helpers.php
so the AdditionalConfiguration
can include it.
Now throwing an exception should show the new error page within an easier stacktrace and more features!