| 1 | <?php  | 
            ||
| 13 | class Plugin extends AbstractPlugin  | 
            ||
| 14 | { | 
            ||
| 15 | public const HANDLER_ERROR_LOG = 'error_log';  | 
            ||
| 16 | |||
| 17 | public const HANDLER_DEVELOPMENT = 'development';  | 
            ||
| 18 | |||
| 19 | protected $events = ['plugins_loaded' => 'registerErrorHandler'];  | 
            ||
| 20 | |||
| 21 | protected $settings = [  | 
            ||
| 22 | 'handler' => self::HANDLER_DEVELOPMENT,  | 
            ||
| 23 | 'editor' => null,  | 
            ||
| 24 | 'level' => -1,  | 
            ||
| 25 | 'error_log_file' => null  | 
            ||
| 26 | ];  | 
            ||
| 27 | |||
| 28 | 29 | public function registerErrorHandler()  | 
            |
| 42 | }  | 
            ||
| 43 |