Skip to content

Commit

Permalink
don't remove temporary files in debug mode, so that we have a possibi…
Browse files Browse the repository at this point in the history
…lity to inspect them
  • Loading branch information
Raphaël Droz committed Jul 20, 2018
1 parent b153d4d commit 9514080
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Twig/Gettext/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public function extract()
public function __destruct()
{
$filesystem = new Filesystem();
$filesystem->remove($this->environment->getCache());
if (! $this->environment->isDebug()) {
$filesystem->remove($this->environment->getCache());
}
}
}

0 comments on commit 9514080

Please sign in to comment.