Skip to content

Commit

Permalink
modified setParams to addParams
Browse files Browse the repository at this point in the history
  • Loading branch information
Herant Awadisan committed Apr 13, 2018
1 parent 7835bcd commit f531f69
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Handlers/Http/Output/Renderers/FoilRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ public function templateExists($template) : bool {
public function engine() : \Foil\Engine {
return $this->engine;
}
/**
* Set params
* @param array $params
*/
public function setParams(array $params = []) {
$this->params = $params;
}

/**
* Add params
* @param array $params
*/
public function addParams(array $params = []) {
$this->params = array_merge($this->params, $params);
}

/**
* Get params
Expand Down Expand Up @@ -113,3 +113,4 @@ public function setContent(\Nuki\Models\IO\Output\Content $content) {
$this->content = $content;
}
}

0 comments on commit f531f69

Please sign in to comment.