Skip to content

Commit 9514080

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 b153d4d commit 9514080

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
@@ -127,6 +127,8 @@ public function extract()
127127
public function __destruct()
128128
{
129129
$filesystem = new Filesystem();
130-
$filesystem->remove($this->environment->getCache());
130+
if (! $this->environment->isDebug()) {
131+
$filesystem->remove($this->environment->getCache());
132+
}
131133
}
132134
}

0 commit comments

Comments
 (0)