How to make php closure compiler write to a predefined file name?
Posted
by Mohammad
on Stack Overflow
See other posts from Stack Overflow
or by Mohammad
Published on 2010-04-08T18:18:33Z
Indexed on
2010/04/08
18:23 UTC
Read the original article
Hit count: 462
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!
© Stack Overflow or respective owner