Skip to content

viktory/api-error-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApiErrorHandler

Simple customized Yii2 ErrorHandler handles uncaught PHP errors and exceptions.

How to use

Add new section (or update existing one) to the components

'components' => [
  'errorHandler' => [
    'class' => 'ApiErrorHandler\ApiErrorHandler',
    'filename' => 'error.log',                //optional, if specified the trace will be written to the log file
    'errorAction' => 'controler/actionError'  //optional, if specified the error action will be run
  ]
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages