1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-30 17:19:54 +02:00

Replaced all class require's with autoloader

This commit is contained in:
Steve Clay
2012-09-30 17:51:34 -04:00
parent db00fa6eb0
commit c196dd39df
39 changed files with 46 additions and 168 deletions

View File

@@ -4,13 +4,9 @@
require dirname(__FILE__) . '/../min/config.php';
set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());
require "$min_libPath/Minify/Loader.php";
Minify_Loader::register();
$minifyCachePath = isset($min_cachePath)
? $min_cachePath
: '';
function min_autoload($name) {
require str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $name) . '.php';
}
spl_autoload_register('min_autoload');