Skip to content

Commit

Permalink
Merge pull request #158 from adamaveray/twig-3-support
Browse files Browse the repository at this point in the history
Support Installing Twig 3
  • Loading branch information
l0gicgate committed Nov 28, 2019
2 parents b63e5b2 + 9c3a195 commit 47bd5cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"require": {
"php": ">=5.5.0",
"twig/twig": "^1.38|^2.7",
"twig/twig": "^1.38|^2.7|^3.0",
"psr/http-message": "^1.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function fetchBlock($template, $block, $data = [])
{
$data = array_merge($this->defaultVariables, $data);

return $this->environment->loadTemplate($template)->renderBlock($block, $data);
return $this->environment->load($template)->renderBlock($block, $data);
}

/**
Expand Down

0 comments on commit 47bd5cc

Please sign in to comment.