mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #15216: Added yii\web\ErrorHandler::$traceLine
to allow opening file at line clicked in IDE
This commit is contained in:

committed by
Alexander Makarov

parent
e9bec0d246
commit
7cafa65ad2
@ -70,6 +70,16 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
||||
*/
|
||||
public $displayVars = ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION'];
|
||||
|
||||
/**
|
||||
* @var string placeholders to be be substituted.
|
||||
* The placeholders are {file}, {line} and {text} and the string should be as follows.
|
||||
*
|
||||
* `File: {file} - Line: {line} - Text: {text}`
|
||||
*
|
||||
* @example <a href="netbeans://open?file={file}&line={line}">{html}</a>
|
||||
* @since 2.0.14
|
||||
*/
|
||||
public $traceLine = '{html}';
|
||||
|
||||
/**
|
||||
* Renders the exception.
|
||||
|
Reference in New Issue
Block a user