. */ namespace SP\Modules\Web\Controllers\Error; use SP\Domain\Core\Exceptions\SPException; /** * Class DatabaseErrorController */ final class DatabaseErrorController extends ErrorBase { /** * databaseErrorAction */ public function databaseErrorAction(): void { $this->layoutHelper->getPublicLayout('error-database'); $this->view->append( 'errors', [ 'type' => SPException::CRITICAL, 'description' => __('Error while checking the database'), 'hint' => __('Please contact to the administrator'), ] ); $this->view(); } }