phuongdev89 / yii2-errorhandler
Yii2 Error Handle
Installs: 104
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7
- yiisoft/yii2: ~2.0.4
This package is auto-updated.
Last update: 2024-10-18 17:45:26 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'
]
*/
],
],