-
-
Notifications
You must be signed in to change notification settings - Fork 642
Closed
Description
I would like to request a configurable Twig cache directory.
From what I understand, it's around here:
that the Twig is initialized and the cache directory is set to the system directory.
However, I would like to have the ability to store Twig cache not higher than the project root directory, and certainly not in shared /tmp folder.
Would you consider adding this feature? If so, would a pull request be considered? If so, how would you approach the problem? A XML config example and a CLI param name would be enough to get me started.
I would go with something like
<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
<twig>
<cache_folder>tmp/twig/cache</cache_folder>
</twig>
</phpdoc>And CLI:
vendor/bin/phpdoc --twig-cache-folder="tmp/twig/cache"I assume folder should be created if it does not exist.
papriwalprateek, messju and wrlee