1
0
Fork 0

Allow the Composer ClassLoader to be unregistered easily

pull/281/head
Jordi Boggiano 2012-02-07 11:11:39 +01:00
parent f761bf8d99
commit 8c535b1961
1 changed files with 8 additions and 0 deletions

View File

@ -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.
*