Loads the given class or interface.
Parameters
string $class The name of the class:
File
- drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/UniversalClassLoader.php, line 246
Class
- UniversalClassLoader
- UniversalClassLoader implements a "universal" autoloader for PHP 5.3.
Namespace
Symfony\Component\ClassLoader
Code
public function loadClass($class) {
if ($file = $this
->findFile($class)) {
require $file;
}
}