Class yii\twig\Profile
| Inheritance | yii\ |
|---|---|
| Source Code | https://github.com/yiisoft/yii2-twig/blob/master/src/Profile.php |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $profiler | yii\ |
||
| $view | yii\ |
Property Details
Method Details
| public mixed __construct ( \ | ||
| $profile | \ |
|
public function __construct(TwigProfile $profile)
{
$profile = new TwigProfile();
$dumper = new TextDumper();
parent::__construct($profile);
$view = \Yii::$app->getView();
$view->on(View::EVENT_AFTER_RENDER, function () use ($profile, $dumper) {
\Yii::trace($dumper->dump($profile));
});
}