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

Implemented SPL autoloader, removed class requires

This commit is contained in:
Steve Clay
2009-09-19 17:00:52 +00:00
parent 4cb2ba2cab
commit 444335b28c
32 changed files with 104 additions and 82 deletions

View File

@@ -9,3 +9,8 @@ set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());
$minifyCachePath = isset($min_cachePath)
? $min_cachePath
: '';
function min_autoload($name) {
require str_replace('_', DIRECTORY_SEPARATOR, $name) . '.php';
}
spl_autoload_register('min_autoload');