How to make php-closure compiler output to a predefined file name? (Updated)
- by Mohammad
Php-closure compiler (linked to source code) currently writes the compiled code to a md5 encoded filename. How can I make it so it write the compiled code to a predefined name like compiled_code.js?
.
.
I think it has to do with the write() function on Line 164. It gets the filename via the _getCacheFileName() function (Line 272).
function _getCacheFileName() {
return $this->_cache_dir . $this->_getHash() . ".js";
}
I've tried altering it 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!