phuongdev89 / yii2-errorhandler
Yii2 Error Handle
Package info
github.com/phuongdev89/yii2-errorhandler
Type:yii2-extension
pkg:composer/phuongdev89/yii2-errorhandler
1.0.0
2023-10-18 15:52 UTC
Requires
- php: >=7
- yiisoft/yii2: ~2.0.4
This package is auto-updated.
Last update: 2026-03-18 20:52:21 UTC
README
Must have phpstorm-protocol before
Composer
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist phuongdev89/yii2-errorhandler "@dev"
or add
"phuongdev89/yii2-errorhandler": "@dev"
to the require section of your composer.json file.
Parameters
$traceLine
Type: string
Default: {html}
If phpstorm-protocol installed, change it to
<a href="phpstorm://open?url=file://{file}&line={line}">{html}</a>
$projectDirectionMap
Type: array|null
Default: null
In docker container, project directory is /app maybe different with your IDE, just map it
Example
'components' => [
'errorHandler' => [
'class' => \phuongdev89\errorhandler\ErrorHandler::class,
/**
'traceLine' => '<a href="phpstorm://open?url=file://{file}&line={line}">{html}</a>',
'projectDirectionMap' => [
'/app' => 'D:\\Ampps\\www\mofiex-com'
]
*/
],
],