canton7 / fuelphp-casset

Better asset management library for fuelphp (with minification!)
MIT License
103 stars 29 forks source link

Change cache_path to public or static accessor function? #34

Closed dmyers closed 12 years ago

dmyers commented 12 years ago

I currently override casset in my app to be able to get the path for things like I have a task that clears the cache folder and things, I realize there is the function, but it would be nice if you could just switch it's visiblity or add a static function to get it from the instance.

What do you think?

canton7 commented 12 years ago

Sure. I'm tempted to go down the accessor route, as it leaves a bit more control. Do you just want a getter, or a setter as well?

canton7 commented 12 years ago

I've left this undocumented, mainly because there wasn't a good place in the documentation to stick it.

Casset::get_cache_path() anyway