How to make php closure compiler write to a predefined file name?
- by Mohammad
I'm quite embarrassed to ask this but I've been trying to figure it out all day with no luck.
http://code.google.com/p/php-closure/source/browse/trunk/php-closure.php
on Line 172 the write() function get the md5 encoded name via the _getHash() function on Line 276. I was wondering how I could alter this code to write the compiled code to a predefined name like copiled_code.js
I've tried altering the _getCacheFileName() function on Line 272 to this
function _getCacheFileName() {
//return $this->_cache_dir . $this->_getHash() . ".js";
return 'copiled_code.js';
}
without any results.
Thanks to all of you in advance!