Skip to content

Commit 28ec639

Browse files
author
Raphaël Droz
committed
don't remove temporary files in debug mode, so that we have a possibility to inspect them
1 parent 41b2a2a commit 28ec639

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Twig/Gettext/Extractor.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public function extract()
9797
public function __destruct()
9898
{
9999
$filesystem = new Filesystem();
100-
$filesystem->remove($this->environment->getCache());
100+
if (! $this->environment->isDebug()) {
101+
$filesystem->remove($this->environment->getCache());
102+
}
101103
}
102104
}

0 commit comments

Comments
 (0)