Gets the <tt>ClassLoader</tt> from the SPL autoload stack that is responsible for (and is able to load) the class with the given name.
string $className The name of the class.:
ClassLoader The <tt>ClassLoader</tt> for the class or NULL if no such <tt>ClassLoader</tt> exists.
public static function getClassLoader($className) {
foreach (spl_autoload_functions() as $loader) {
if (is_array($loader) && $loader[0] instanceof ClassLoader && $loader[0]
->canLoadClass($className)) {
return $loader[0];
}
}
return null;
}