2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-04 11:25:22 +00:00
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
2020-05-27 18:46:16 +02:00
|
|
|
/**
|
|
|
|
* Setup how the exception handler works.
|
|
|
|
*/
|
2021-04-02 17:20:02 +00:00
|
|
|
class Exceptions extends BaseConfig
|
2020-05-27 18:46:16 +02:00
|
|
|
{
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* LOG EXCEPTIONS?
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* If true, then exceptions will be logged
|
|
|
|
* through Services::Log.
|
|
|
|
*
|
|
|
|
* Default: true
|
2020-08-04 11:25:22 +00:00
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public bool $log = true;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* DO NOT LOG STATUS CODES
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Any status codes here will NOT be logged if logging is turned on.
|
|
|
|
* By default, only 404 (Page Not Found) exceptions are ignored.
|
|
|
|
*
|
2021-05-14 17:59:35 +00:00
|
|
|
* @var int[]
|
2020-08-04 11:25:22 +00:00
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public array $ignoreCodes = [404];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Error Views Path
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* This is the path to the directory that contains the 'cli' and 'html'
|
|
|
|
* directories that hold the views used to generate errors.
|
|
|
|
*
|
|
|
|
* Default: APPPATH.'Views/errors'
|
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public string $errorViewPath = APPPATH . 'Views/errors';
|
2021-05-25 10:40:22 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* HIDE FROM DEBUG TRACE
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Any data that you would like to hide from the debug trace.
|
|
|
|
* In order to specify 2 levels, use "/" to separate.
|
|
|
|
* ex. ['server', 'setup/password', 'secret_token']
|
|
|
|
*
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
public array $sensitiveDataInTrace = [];
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|