Skip to content

Commit

Permalink
fix(twig.gen): doGenerate() expects relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 25, 2018
1 parent 9f099d3 commit 46f827f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/TwigGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function generate(string $targetPath, array $parameters, CollisionHandler
$processed[$relativePath] = true;

if ($this->shouldGenerate($template, $parameters)) {
$generated += (int) $this->doGenerate($template, $targetPath, $parameters, $handler);
$generated += (int) $this->doGenerate($relativePath, $targetPath, $parameters, $handler);
}
}

Expand Down

0 comments on commit 46f827f

Please sign in to comment.