mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-10 12:39:38 +02:00
- add james-heinrich/getid3 library as a dependency to composer.json - update DEPENDENCIES.md file - fix episodes table migration script - add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit - reformat all files to the prettier format - refactor code by separating some logic as helper functions - overwrite existing files when uploading new files with the same name fixes #1
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php namespace Config;
|
|
|
|
/**
|
|
* Setup how the exception handler works.
|
|
*
|
|
* @package Config
|
|
*/
|
|
|
|
class Exceptions
|
|
{
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| LOG EXCEPTIONS?
|
|
|--------------------------------------------------------------------------
|
|
| If true, then exceptions will be logged
|
|
| through Services::Log.
|
|
|
|
|
| Default: true
|
|
*/
|
|
public $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.
|
|
*/
|
|
public $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 $errorViewPath = APPPATH . 'Views/errors';
|
|
}
|