/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Error
NameSizeModeActions
Debug/-0755rm
Middleware/-0755rm
BaseErrorHandler.php124330644editdlrm
ConsoleErrorHandler.php35580644editdlrm
Debugger.php373190644editdlrm
ErrorHandler.php74360644editdlrm
ErrorLogger.php48020644editdlrm
ErrorLoggerInterface.php16110644editdlrm
ExceptionRenderer.php141580644editdlrm
ExceptionRendererInterface.php9500644editdlrm
FatalErrorException.php12930644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Error/ConsoleErrorHandler.php (3558B)
new ConsoleOutput('php://stderr'), 'log' => false, ]; $this->setConfig($config); $this->_stderr = $this->_config['stderr']; } /** * Handle errors in the console environment. Writes errors to stderr, * and logs messages if Configure::read('debug') is false. * * @param \Throwable $exception Exception instance. * @return void * @throws \Exception When renderer class not found * @see https://secure.php.net/manual/en/function.set-exception-handler.php */ public function handleException(Throwable $exception): void { $this->_displayException($exception); $this->logException($exception); $code = $exception->getCode(); $code = $code && is_int($code) ? $code : 1; $this->_stop($code); } /** * Prints an exception to stderr. * * @param \Throwable $exception The exception to handle * @return void */ protected function _displayException(Throwable $exception): void { $errorName = 'Exception:'; if ($exception instanceof FatalErrorException) { $errorName = 'Fatal Error:'; } $message = sprintf( "%s %s\nIn [%s, line %s]\n", $errorName, $exception->getMessage(), $exception->getFile(), $exception->getLine() ); $this->_stderr->write($message); } /** * Prints an error to stderr. * * Template method of BaseErrorHandler. * * @param array $error An array of error data. * @param bool $debug Whether or not the app is in debug mode. * @return void */ protected function _displayError(array $error, bool $debug): void { $message = sprintf( "%s\nIn [%s, line %s]", $error['description'], $error['file'], $error['line'] ); $message = sprintf( "%s Error: %s\n", $error['error'], $message ); $this->_stderr->write($message); } /** * Stop the execution and set the exit code for the process. * * @param int $code The exit code. * @return void */ protected function _stop(int $code): void { exit($code); } }