Fixes #15216: Added yii\web\ErrorHandler::$traceLine to allow opening file at line clicked in IDE

This commit is contained in:
Гордиенко Владислав Юрьевич
2018-02-08 00:36:29 +05:00
committed by Alexander Makarov
parent e9bec0d246
commit 7cafa65ad2
4 changed files with 27 additions and 4 deletions

View File

@ -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.