mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
/**
|
|
* Setup how the exception handler works.
|
|
*/
|
|
class Exceptions extends BaseConfig
|
|
{
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* LOG EXCEPTIONS?
|
|
* --------------------------------------------------------------------------
|
|
* If true, then exceptions will be logged
|
|
* through Services::Log.
|
|
*
|
|
* Default: true
|
|
*
|
|
*/
|
|
public bool $log = true;
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* 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.
|
|
*
|
|
* @var int[]
|
|
*/
|
|
public array $ignoreCodes = [404];
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* 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'
|
|
*
|
|
*/
|
|
public string $errorViewPath = APPPATH . 'Views/errors';
|
|
}
|