Skip to content

Commit

Permalink
Added passing handler to template
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Mar 27, 2017
1 parent e76360d commit 8975676
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/handlers/TemplateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public function renderTemplate($data)
public function prepareData($data)
{
return array_merge([
'config' => Yii::$app->config,
'file' => $data->file,
'config' => Yii::$app->config,
'file' => $data->file,
'handler' => $this
], parent::prepareData($data));
}

Expand Down

0 comments on commit 8975676

Please sign in to comment.