diff --git a/Load.php b/Load.php index f2085ad..5c44b3f 100644 --- a/Load.php +++ b/Load.php @@ -16,7 +16,7 @@ class Load static protected $autoload; - static protected $exclude = array('/.git', '/lib/core/tests', '/lib/core/.git'); + static protected $exclude = array(); /** * Add exclude path for autoload. Should be called before setAutoloadFrom @@ -71,9 +71,11 @@ class Load } $scan = array(PATH . '/' . APP . '/src', PATH . '/lib'); + $exclude = array_merge(self::$exclude, array(PATH . '/.git', PATH . '/lib/core/tests', PATH . '/lib/core/.git')); + require_once(PATH . '/lib/core/util/AutoloadBuilder.php'); - $builder = new AutoloadBuilder(self::$file, $scan, self::$exclude); + $builder = new AutoloadBuilder(self::$file, $scan, $exclude); $builder->build(); ignore_user_abort(false); }