@@ -84,6 +84,14 @@ class ClassLoader
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
}
+ /**
+ * Unregisters this instance as an autoloader.
+ */
+ public function unregister()
+ {
+ spl_autoload_unregister(array($this, 'loadClass'));
+ }
+
/**
* Loads the given class or interface.
*